wok-6.x view 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 source
1 # SliTaz package receipt.
3 PACKAGE="gutenpy"
4 VERSION="0.3.0"
5 CATEGORY="office"
6 SHORT_DESC="A text reader and catalog browser for project Gutenburg."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="python pygtk"
9 BUILD_DEPENDS="python python-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://gutenpy.sourceforge.net/"
12 WGET_URL="http://prdownloads.sourceforge.net/gutenpy/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
19 # Fix missing .desktop file
20 sed -i '/share\/applications/d' setup.py
21 sed -i '/gutenpy.desktop/d' setup.py
22 python setup.py install --root=$PWD/_pkg
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 cp -a $_pkg/usr $fs
29 # Add gutenpy.desktop file
30 cp -a stuff/* $fs
31 }
33 post_install()
34 {
35 # link old libraries
36 echo -n "Linking libs..."
37 cd $1/usr/lib
38 ln -s libffi.so.5.0.9 libffi.so.4
39 status
40 }
42 post_remove()
43 {
44 # remove old libraries
45 echo -n "Removing libs..."
46 rm -f /usr/lib/libffi.so.4
47 status
48 }