wok-next diff gutenpy/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | c022997c7a57 |
children | d5aab818505e |
line diff
1.1 --- a/gutenpy/receipt Thu Aug 23 10:22:21 2018 +0300 1.2 +++ b/gutenpy/receipt Tue Oct 16 16:46:05 2018 +0300 1.3 @@ -1,31 +1,28 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="gutenpy" 1.8 VERSION="0.3.0" 1.9 CATEGORY="office" 1.10 -SHORT_DESC="A text reader and catalog browser for project Gutenburg." 1.11 +SHORT_DESC="A text reader and catalog browser for project Gutenburg" 1.12 MAINTAINER="paul@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://gutenpy.sourceforge.net/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://gutenpy.sourceforge.net/" 1.18 -WGET_URL="http://prdownloads.sourceforge.net/gutenpy/$TARBALL" 1.19 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.20 1.21 -DEPENDS="python python-pygtk" 1.22 BUILD_DEPENDS="python-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 +compile_rules() { 1.28 # Fix missing .desktop file 1.29 - sed -i '/share\/applications/d' setup.py 1.30 - sed -i '/gutenpy.desktop/d' setup.py 1.31 - python setup.py install --root=$DESTDIR 1.32 + sed -i '/share\/applications/d; /gutenpy.desktop/d' setup.py 1.33 + 1.34 + python -B setup.py install --root=$DESTDIR 1.35 } 1.36 1.37 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 -genpkg_rules() 1.39 -{ 1.40 +genpkg_rules() { 1.41 cp -a $install/usr $fs 1.42 # Add gutenpy.desktop file 1.43 cp -a stuff/* $fs 1.44 + DEPENDS="python python-pygtk" 1.45 }