#Packager: Frédéric Galusik pkgname=ppub pkgver=20111101 pkgrel=1fg arch=noarch source=("http://people.salixos.org/fredg/packages/$pkgname/$pkgver/$pkgname-$pkgver.src.tar.gz" "ppub.desktop" "EPUB_logo.svg" "ppub_48.png") sourcetemplate=http://people.salixos.org/fredg/packages/$pkgname/$pkgver docs=("readme" "copying") url=https://github.com/sakisds/pPub slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "pPub (Very light ebook epub reader)" "A simple epub reader written with pygtk and pywebkit." "Bookmarks are matched with the MD5 hash of each book" "so they are valid even if you rename or move your books." ) build() { cd $startdir/src/$pkgname sed -i 's@python2@python@g' ppub.py install -Dm 755 ppub.py \ $startdir/pkg/usr/bin/ppub # Desktop integration # # pPub has no official logo for now, in the meantine I # will use this one found on wikipedia converted to png # http://en.wikipedia.org/wiki/File:EPUB_logo.svg # # this is a logo owned by International Digital # Publication Forum for the EPUB file format. It is a # historical logo. Its historical usage is as follows: # The logo was recently accepted (2010-06) as part of a # competition to create a logo for EPUB. Further # details: Designed by Ralph Burkhardt as part of the # IDPF competition. install -Dm 644 $startdir/src/ppub_48.png \ $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ppub_48.png install -Dm 644 $startdir/src/ppub.desktop \ $startdir/pkg/usr/share/applications/ppub.desktop }