#Packager: Richard Lapointe #Former Packager(s): Name #Anything commented out is optional and can be deleted. pkgname=txt2tags pkgver=2.5 pkgrel=1rl arch=noarch source=(http://txt2tags.googlecode.com/files/$pkgname-$pkgver.tgz \ txt2tags.desktop \ txt2tags.png) sourcetemplate=http://people.salixos.org/laprjns/$pkgname/$pkgver/ docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://txt2tags.sourceforge.net/index.html #dotnew=() #CFLAGS= #CXXFLAGS= #options=('noextract') #doinst() { # #} slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Txt2tags (a document generator.)" "Txt2tags reads a text file with minimal markup as **bold** and" " //italic// and converts it to the following formats: HTML, XHTML," " SGML, LaTeX, Lout, Man page, wiki, Google Code wiki, MoinMoin," " MagicPoint, PageMaker and plantex" ) build() { # As txt2tags is a python program, all we have to do is copy it to /usr/bin cd $startdir/src/$pkgname-$pkgver chown -R root:root . mkdir -p $startdir/pkg/usr/bin/ cp -a txt2tags $startdir/pkg/usr/bin/txt2tags # Give the man pages a nice home and then gzip them mkdir -p $startdir/pkg/usr/man/man1 cp doc/manpage.man $startdir/pkg/usr/man/man1/txt2tags.1 # And the ones for other locales for locale in ca es fr it pt zh ; do mkdir -p $startdir/pkg/usr/man/$locale/man1 cp doc/manpage-$locale.man $startdir/pkg/usr/man/$locale/man1/txt2tags.1 done find $startdir/pkg/usr/man -type f -exec gzip -9 {} \; mkdir -p $startdir/pkg/usr/doc/$pkgname-$pkgver cp -a \ COPYING ChangeLog README TODO extras samples test \ $startdir/pkg/usr/doc/$pkgname-$pkgver cp -a $startdir/src/$pkgname-$pkgver/doc/*.pdf $startdir/pkg/usr/doc/$pkgname-$pkgver/ # Desktop and icon files for size in 48 do mkdir -p $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/ cp -rf $startdir/$pkgname.png $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/ done mkdir -p $startdir/pkg/usr/share/applications cp -rf $startdir/$pkgname.desktop $startdir/pkg/usr/share/applications }