wok view gutenpy/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 16df76e1fc6a
children 7dd01dedad38
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://gutenpy.sourceforge.net/"
11 WGET_URL="http://prdownloads.sourceforge.net/gutenpy/$TARBALL"
13 DEPENDS="python pygtk"
14 BUILD_DEPENDS="python python-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/gutenpy/files/gutenpy/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/gutenpy/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Fix missing .desktop file
28 sed -i '/share\/applications/d' setup.py
29 sed -i '/gutenpy.desktop/d' setup.py
30 python setup.py install --root=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 # Add gutenpy.desktop file
38 cp -a stuff/* $fs
39 }