1 # contrib: kevku <kevku@gmx.com>
5 pkgdesc="Wolfram CDF Player"
7 url="http://www.wolfram.com/cdf-player/"
10 if [[ "$CARCH" == 'i686' ]]; then
11 depends+=('alsa-lib' 'mesa' 'libxmu' 'glib2' 'libxi' 'libxrender')
13 depends+=('lib32'-{'alsa-lib','mesa','libxmu','glib2','libxi','libxrender'})
18 md5sums=('eb33d6bb6c6730fbe0438f25b394d328')
23 curl -c cookie http://www.wolfram.com/cdf-player/ &>/dev/null
24 IP=$(curl -b cookie -e http://www.wolfram.com/cdf-player/request.cgi http://www.wolfram.com/cdf-player/request.cgi | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}')
25 wget $(curl -b cookie -e http://www.wolfram.com/cdf-player/request.cgi \
26 -d "the-platform=lnx&user-isa=&organization=&institution=&email=linux@linux.xxx&location=$IP&action=submit-verify&source_name=NoneProvided" \
27 http://www.wolfram.com/cdf-player/request.cgi | sed -n '/no-start/s/^.*href="\(.*\)" target.*$/\1/p') -O CDFPlayer_8.0.3_LINUX.sh
33 sh CDFPlayer_8.0.3_LINUX.sh --nox11 <<- EOF
34 $pkgdir/opt/Wolfram/CDFPlayer/8.0
39 ln -sf /opt/Wolfram/CDFPlayer/8.0/Executables/WolframCDFPlayer $pkgdir/usr/bin/WolframCDFPlayer
40 ln -sf /opt/Wolfram/CDFPlayer/8.0/Executables/wolframcdfplayer $pkgdir/usr/bin/wolframcdfplayer
41 install -Dm644 LICENCE $pkgdir/usr/share/licenses/cdfplayer/LICENCE
42 rm $pkgdir/opt/Wolfram/CDFPlayer/8.0/InstallErrors
46 # vim:set ts=2 sw=2 et: