updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / form / PKGBUILD
blobed6d6fca0fcfe6cbe03fdd0784aba447dde2c26e
1 # Contributor: quasi <quasi@aur.archlinux.org>
3 pkgname=form
4 pkgver=3.3
5 pkgrel=1
6 pkgdesc="Symbolic Manipulation System"
7 arch=('i686' 'x86_64')
8 url="http://www.nikhef.nl/~form/"
9 license=(custom:FORM)
10 md5sums=('d3760450ccd7104f807d4447c6a30545' '8f2976853f886aa063f1b7e2f885a641' 'f7f165c70ecc558767151aa597f50f04' '8ec75ba62e2fde100f0673b14524c2ba' '4a8632e051014f60534f14d8ba409af9' 'e68e579fe78da3664b82a8dc6a6a32c3' '0b545e19129bd5107b35ce2c8953c44b' '4987dcb51d634917a57dfa7fa9a84443')
12 if [ ${CARCH} = "i686" ]
13 then
14         _plat=32
15         else
16         _plat=64
19 source=(http://www.nikhef.nl/~form/maindir/documentation/tutorial/book.ps
20                 http://www.nikhef.nl/~form/maindir/documentation/tutorial/book.pdf
21                 http://www.nikhef.nl/~form/maindir/documentation/reference/man.ps
22                 http://www.nikhef.nl/~form/maindir/documentation/reference/man.pdf
23                 http://www.nikhef.nl/~form/maindir/documentation/lattice.ps
24                 http://www.nikhef.nl/~form/maindir/documentation/lattice.pdf
25                 form.install
26                 license
27                 )
29 build() {
30         wget http://www.nikhef.nl/~form/maindir/binaries/linux${_plat}/form -O $srcdir/form || return 1
31         wget http://www.nikhef.nl/~form/maindir/binaries/linux${_plat}/tform -O $srcdir/tform || return 1
32         
33         mkdir -p $pkgdir/usr/bin/ || return 1
34         mkdir -p $pkgdir/usr/share/doc/FORM/ return 1
35         
36         cp -f $srcdir/form $pkgdir/usr/bin/ || return 1
37         cp -f $srcdir/tform $pkgdir/usr/bin/ || return 1
38         cp -f $srcdir/*.ps $pkgdir/usr/share/doc/FORM/ || return 1
39         cp -f $srcdir/*.pdf $pkgdir/usr/share/doc/FORM/ || return 1
40         cp -f $srcdir/license $pkgdir/usr/share/doc/FORM/ || return 1
42         chmod 755 $pkgdir/usr/bin/form || return 1
43         chmod 755 $pkgdir/usr/bin/tform || return 1
44