1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
5 pkgdesc="The Treaty of Babel analysis tool for interactive fiction files."
7 url="http://babel.ifarchive.org/program.html"
8 license=('creative-commons-by')
11 source=(http://babel.ifarchive.org/downloads/babel.zip http://babel.ifarchive.org/babel_rev7.txt)
12 md5sums=('a9538dede1c34f544547c44d738c89d2' '86a309d775f822e8c1c8042e0ea1ba16')
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
35 mkdir -p $pkgdir/usr/bin
36 mkdir -p $pkgdir/usr/share/babel-if
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