updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / textallion / PKGBUILD
blob4cbe4d523e7ce69407ffdfca01bc826605530366
1 # Contributor: Stefan Husmann 
2 # Maintainer: Eric Forgeot < http://esclinux.tk >
4 pkgname=textallion
5 pkgver=2011_07_24
6 pkgrel=1
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)"
8 arch=('any')
9 url="http://anamnese.online.fr/site2/textallion/docs/presentation.html"
10 license=('BSD')
11 depends=('python2')
12 makedepends=('gzip')
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')
18 build() {
19   cd $srcdir/${pkgname}
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
30     
31     #desktop icons
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
35     
36