1 # Contributor: Karro <karolina.lindqvist@kramnet.se>
6 pkgdesc="Algol68 interpreter"
8 url="http://www.xs4all.nl/~jmvdveer/algol.html"
10 depends=(gsl plotutils)
11 optdepends=('postgresql-libs: for postgresql support')
13 source=(http://www.xs4all.nl/~jmvdveer/$pkgname-$pkgver.tgz
14 options.patch comment.extension.patch standardprelude.patch configure.patch
16 plotutils-filldefault.patch
17 http://www.xs4all.nl/~jmvdveer/a68gdoc.pdf)
20 cd "$srcdir/$pkgname-$pkgver"
22 patch -b -p0 <../../options.patch || return 1
23 patch -b -p0 <../../configure.patch || return 1
24 patch -b -p0 <../../comment.extension.patch || return 1
25 # patch -b -p0 <../../plotutils.patch || return 1
26 patch -b -p0 <../../standardprelude.patch || return 1
27 patch -b -p0 <../../plotutils-filldefault.patch || return 1
28 sed -i -e "s/prescott/$CARCH/g" ./configure || return 1
29 ./configure -O5 --threads -incdir=/usr/include -bindir=/usr/bin -libdir=/usr/lib
30 sed -i -e 's/^USR_BIN=.*$/USR_BIN=$(DESTDIR)\/usr\/bin/' \
31 -e 's/^man_dir=.*$/man_dir=$(DESTDIR)\/usr\/share\/man\/man1\//' makefile
33 install -d $pkgdir/usr/bin
34 install -d $pkgdir/usr/share/man/man1
35 install -d $pkgdir/usr/share/doc/$pkgname
36 install -d $pkgdir/usr/share/doc/$pkgname/demo
37 # Due to a bug in mk17
38 if [ ! -f doc/man1/a68g.1 ]; then \
41 cp ../../a68g.1 doc/man1/;
43 make DESTDIR="$pkgdir" install || return 1
44 # There is nothing of value in doc right now
45 #cp doc/* $pkgdir/usr/share/doc/$pkgname
46 # Install demo programs
47 cp demo/* $pkgdir/usr/share/doc/$pkgname/demo
48 # Install documentation .pdf file
49 install $srcdir/a68gdoc.pdf $pkgdir/usr/share/doc/$pkgname
50 install -m755 -d $startdir/pkg/usr/share/licenses/$pkgname
51 install -m644 ./copying.txt $pkgdir/usr/share/licenses/$pkgname
54 md5sums=('8ae33b7882c63c0b313aca5b3614fa52'
55 'dba10afacb7d3273fdf4bf87fddfb245'
56 '1e49e626b059b6efd5f8111638fb2e8d'
57 '0853dfe8abe4f92ea2338e7d1184de18'
58 'e6337871081ebe2907441aa59c34c879'
59 'd456e03311cc7baede0411cbc343a237'
60 '9e90b0e24b94e864a6a00bfa75b3b46d'
61 '072531be2af34f19d160eab20214fc7b')