wok-6.x diff gutenpy/receipt @ rev 4710
Add: python-pyprotocols (PEP 246 and a whole lot more)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jan 04 18:40:28 2010 +0100 (2010-01-04) |
parents | |
children | b8b131bc573c |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gutenpy/receipt Mon Jan 04 18:40:28 2010 +0100 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 +}