1 # Contributor: quasi <quasi@aur.archlinux.org>
6 pkgdesc="A portable general-purpose computer algebra system"
8 url="http://reduce-algebra.sourceforge.net/"
11 source=(http://downloads.sourceforge.net/project/reduce-algebra/reduce-src-$pkgver.tar.bz2 reduce.desktop reduce.sh)
12 md5sums=('f3abfb66d388cb05c6d7e19d264b2ba6' '9787ec435b89a36992100f09af809d98' 'cb078af82e37baaf6aa475d2a387010b')
15 cd $srcdir/reduce-$pkgver || return 1
16 ./configure --with-csl || return 1
22 mkdir -p $pkgdir/opt/reduce-algebra/ || return 1
23 mkdir -p $pkgdir/usr/share/applications || return 1
24 mkdir -p $pkgdir/usr/share/icons || return 1
25 cp $srcdir/reduce-$pkgver/cslbuild/generated-c/reduce.img $pkgdir/opt/reduce-algebra/ || return 1
26 cp $srcdir/reduce-$pkgver/cslbuild/$CARCH-unknown-linux-gnu/csl/reduce $pkgdir/opt/reduce-algebra/ || return 1
27 cp -r $srcdir/reduce-$pkgver/cslbuild/$CARCH-unknown-linux-gnu/csl/reduce.doc $pkgdir/opt/reduce-algebra/ || return 1
28 cp -r $srcdir/reduce-$pkgver/cslbuild/$CARCH-unknown-linux-gnu/csl/reduce.fonts $pkgdir/opt/reduce-algebra/ || return 1
29 cp $startdir/reduce.sh $pkgdir/opt/reduce-algebra/ || return 1
30 chmod 755 $pkgdir/opt/reduce-algebra/reduce.sh || return 1
31 cp $startdir/reduce.desktop $pkgdir/usr/share/applications || return 1
32 cp $srcdir/reduce-$pkgver/generic/qreduce/Bumblebee.png $pkgdir/usr/share/icons/reduce.png || return 1