1 # Contributor: Eric Forgeot < http://ifiction.free.fr >
5 pkgdesc="An Interactive Fiction metadata browser, written in Java"
7 url="http://blorple.sourceforge.net/"
9 depends=('java-runtime')
10 source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.jar)
11 md5sums=('389f62ae2c3312b0d32412c814117534')
16 mkdir -p $pkgdir/usr/share/blorple
17 mkdir -p $pkgdir/usr/share/applications
18 mkdir -p $pkgdir/usr/share/pixmaps
19 mkdir -p $pkgdir/usr/bin
21 cp $srcdir/${pkgname}-${pkgver}.jar $pkgdir/usr/share/blorple
22 cp $srcdir/../blorple.properties $pkgdir/usr/share/blorple
24 echo "cd /usr/share/blorple
25 java -jar ${pkgname}-${pkgver}.jar" > $pkgdir/usr/bin/blorple
27 echo "if [ ! -e ~/.blorple ]; then
30 cp /usr/share/blorple/blorple.properties ~/.blorple" > $pkgdir/usr/share/blorple/blorple_applications.sh
32 chmod +x $pkgdir/usr/bin/blorple
33 chmod +x $pkgdir/usr/share/blorple/blorple_applications.sh
35 cp $srcdir/../blorple.png $pkgdir/usr/share/pixmaps/
36 install -D -m644 $srcdir/../blorple.desktop $pkgdir/usr/share/applications
38 echo -e "\n Run /usr/share/blorple/blorple_applications.sh as user to create a default config file for using with the gargoyle interpreter \n"