updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / reduce-algebra / PKGBUILD
blob6e11e4a7021785c5cc2f5df3351ade452c7b13ae
1 # Contributor: quasi <quasi@aur.archlinux.org>
3 pkgname=reduce-algebra
4 pkgver=20110414
5 pkgrel=1
6 pkgdesc="A portable general-purpose computer algebra system"
7 arch=('i686' 'x86_64')
8 url="http://reduce-algebra.sourceforge.net/"
9 license=('BSD')
10 depends=()
11 source=(http://downloads.sourceforge.net/project/reduce-algebra/reduce-src-$pkgver.tar.bz2 reduce.desktop reduce.sh)
12 md5sums=('f3abfb66d388cb05c6d7e19d264b2ba6' '9787ec435b89a36992100f09af809d98' 'cb078af82e37baaf6aa475d2a387010b')
14 build() {
15     cd $srcdir/reduce-$pkgver || return 1
16     ./configure --with-csl || return 1
17     make || return 1
18 }  
20 package(){
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