1 # Contributor: Stefan Husmann
2 # Maintainer: Eric Forgeot < http://esclinux.tk >
7 pkgdesc="A simple word processor based on txt2tags and its markup, for publishing prose, literature, poetry in HTML, PDF or EPUB, and also cyoa (gamebooks & renpy)"
9 url="http://anamnese.online.fr/site2/textallion/docs/presentation.html"
13 optdepends=('texlive-humanities: export to pdf' 'calibre: export to epub' 'tidyhtml: cleaning html for epub export' 'psutils: advanced postscript operations like making booklets' 'ttf-linux-libertine: xetex optional backend' 'imagemagick: generate personalised covers' 'perl: for renpy export' 'gnome-inform7: for z-code export')
14 source=(http://textallion.googlecode.com/files/textallion_2011-07-24_merode.zip )
16 md5sums=('7a7ce5d5286e1207b56f3b58a4964e13')
20 mkdir -p $pkgdir/usr/bin/
21 mkdir -p $pkgdir/usr/share/${pkgname}
22 cp -fr $srcdir/${pkgname}/* $pkgdir/usr/share/${pkgname}
23 rm $pkgdir/usr/share/${pkgname}/textallion_install.sh
24 chmod -R 755 $pkgdir/usr/share/textallion/
25 chmod +x $pkgdir/usr/share/textallion/core/textallion.sh
26 chmod +x $pkgdir/usr/share/textallion/contrib/txt2tags/txt2tags
28 echo "sh /usr/share/textallion/core/textallion.sh" > $pkgdir/usr/bin/textallion
29 chmod +x $pkgdir/usr/bin/textallion
32 mkdir -p $pkgdir/usr/share/pixmaps
33 cp $srcdir/${pkgname}/images/icon_textallion256.png $pkgdir/usr/share/pixmaps/textallion.png
34 install -D -m644 $srcdir/${pkgname}/contrib/others/textallion.desktop $pkgdir/usr/share/applications/textallion.desktop