wok-stable rev 4703
Add: gutenpy (ebook reader)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Jan 03 17:58:12 2010 +0000 (2010-01-03) |
parents | 7b34aa2dd3aa |
children | 9f7f4d06661f |
files | gutenpy/receipt gutenpy/stuff/usr/share/applications/gutenpy.desktop |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gutenpy/receipt Sun Jan 03 17:58:12 2010 +0000 1.3 @@ -0,0 +1,48 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="gutenpy" 1.7 +VERSION="0.3.0" 1.8 +CATEGORY="office" 1.9 +SHORT_DESC="A text reader and catalog browser for project Gutenburg." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="python pygtk" 1.12 +BUILD_DEPENDS="python python-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://gutenpy.sourceforge.net/" 1.15 +WGET_URL="http://prdownloads.sourceforge.net/gutenpy/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + 1.22 + # Fix missing .desktop file 1.23 + sed -i '/share\/applications/d' setup.py 1.24 + sed -i '/gutenpy.desktop/d' setup.py 1.25 + python setup.py install --root=$PWD/_pkg 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + cp -a $_pkg/usr $fs 1.32 + # Add gutenpy.desktop file 1.33 + cp -a stuff/* $fs 1.34 +} 1.35 + 1.36 +post_install() 1.37 +{ 1.38 + # link old libraries 1.39 + echo -n "Linking libs..." 1.40 + cd $1/usr/lib 1.41 + ln -s libffi.so.5.0.9 libffi.so.4 1.42 + status 1.43 +} 1.44 + 1.45 +post_remove() 1.46 +{ 1.47 + # remove old libraries 1.48 + echo -n "Removing libs..." 1.49 + rm -f /usr/lib/libffi.so.4 1.50 + status 1.51 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/gutenpy/stuff/usr/share/applications/gutenpy.desktop Sun Jan 03 17:58:12 2010 +0000 2.3 @@ -0,0 +1,10 @@ 2.4 +[Desktop Entry] 2.5 +Version=1.0 2.6 +Encoding=UTF-8 2.7 +Name=Gutenpy eBook Reader 2.8 +Name[fr]=Gutenpy 2.9 +Exec=gutenpy.py 2.10 +Icon=/usr/share/pixmaps/gutenpy/book-lg.png 2.11 +Type=Application 2.12 +Categories=Office; 2.13 +GenericName[en_GB]=