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