wok view gutenpy/receipt @ rev 25539

Up perl-test-compile (3.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 09 12:11:13 2023 +0000 (20 months ago)
parents 370da83187ab
children 6b33f9da53d4
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="https://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 }