wok annotate gutenpy/receipt @ rev 25164

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