updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / babel-if / PKGBUILD
blob366525253724de1369acfcf2fbe9eb64277b2993
1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
2 pkgname=babel-if
3 pkgver=1.10
4 pkgrel=1
5 pkgdesc="The Treaty of Babel analysis tool for interactive fiction files."
6 arch=(i686 x86_64)
7 url="http://babel.ifarchive.org/program.html"
8 license=('creative-commons-by')
9 depends=('glibc')
10 groups=(ifiction)
11 source=(http://babel.ifarchive.org/downloads/babel.zip http://babel.ifarchive.org/babel_rev7.txt)
12 md5sums=('a9538dede1c34f544547c44d738c89d2' '86a309d775f822e8c1c8042e0ea1ba16')
15 build() {
16   cd $srcdir/
18         sed -i -e "s/CC=bcc32//g" makefile
19         sed -i -e "s/OBJ=.obj//g" makefile
20         sed -i -e "s/BABEL_LIB=babel.lib//g" makefile
21         sed -i -e "s/IFICTION_LIB=ifiction.lib//g" makefile
22         sed -i -e "s/BABEL_FLIB=babel_functions.lib//g" makefile
24         sed -i -e "s/#CC=gcc -g/CC=gcc -g/g" makefile
25         sed -i -e "s/#OBJ=.o/OBJ=.o/g" makefile
26         sed -i -e "s/#BABEL_LIB=babel.a/BABEL_LIB=babel.a/g" makefile
27         sed -i -e "s/#BABEL_FLIB=babel_functions.a/BABEL_FLIB=babel_functions.a/g" makefile
28         sed -i -e "s/#IFICTION_LIB=ifiction.a/IFICTION_LIB=ifiction.a/g" makefile
29         sed -i -e "s/#OUTPUT_BABEL=-o babel/OUTPUT_BABEL=-o babel-if/g" makefile
31         make || return 1
32         cd $srcdir/babel-get
33         make || return 1
35         mkdir -p $pkgdir/usr/bin
36         mkdir -p $pkgdir/usr/share/babel-if
37         
38         cd $srcdir/
39         install -D -m644 $srcdir/babel-if $pkgdir/usr/bin
40         install -D -m644 $srcdir/babel-get/babel-get $pkgdir/usr/bin
41         install -D -m644 $srcdir/MANIFEST $pkgdir/usr/share/babel-if
42         install -D -m644 $srcdir/README $pkgdir/usr/share/babel-if
43         install -D -m644 $srcdir/babel_rev7.txt $pkgdir/usr/share/babel-if
44         cp -fr $srcdir/extras $pkgdir/usr/share/
45         echo "less /usr/share/babel-if/babel_rev7.txt" > $pkgdir/usr/bin/babel-if-readme.sh
46         chmod +x $pkgdir/usr/bin/babel-if-readme.sh
47         chmod +x $pkgdir/usr/bin/babel-if
48         chmod +x $pkgdir/usr/bin/babel-get