wok-current annotate pypar2/receipt @ rev 24713

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 14 18:23:09 2022 +0000 (2022-03-14)
parents 052364228d11
children 59547e97954f
rev   line source
pascal@18655 1 # SliTaz package receipt.
pascal@18655 2
pascal@18655 3 PACKAGE="pypar2"
pascal@18655 4 VERSION="1.4"
pascal@18655 5 CATEGORY="development"
pascal@18655 6 SHORT_DESC="A graphical frontend for the par2 utility"
pascal@18655 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18655 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18655 9 WEB_SITE="http://pypar2.silent-blade.org/"
pascal@18655 10 WGET_URL="$WEB_SITE/uploads/Main/$TARBALL"
pascal@18655 11
pascal@18656 12 DEPENDS="pygtk par2 python-pyxml python-vte"
al@18657 13 BUILD_DEPENDS="findutils"
pascal@18655 14
pascal@24713 15 # What is the latest version available today?
pascal@24713 16 current_version()
pascal@24713 17 {
pascal@24713 18 wget -O - https://tracker.debian.org/pkg/pypar2 2>/dev/null | \
pascal@24713 19 sed '/changelog-/!d;s|.*changelog-||;s|-.*||;q'
pascal@24713 20 }
pascal@24713 21
pascal@18655 22 # Rules to configure and make the package.
pascal@18655 23 compile_rules()
pascal@18655 24 {
al@18657 25 make prefix=/usr DESTDIR=$DESTDIR install
al@18657 26 sdft $install/usr/share/applications/pypar2.desktop \
al@18657 27 -i -s "Categories=GTK;Utility;"
pascal@18655 28 }
pascal@18655 29
pascal@18655 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18655 31 genpkg_rules()
pascal@18655 32 {
pascal@18655 33 cp -a $install/* $fs/
pascal@18656 34 rm -rf $fs/usr/share/man $fs/usr/bin/pypar2
pascal@18656 35 ln -s /usr/share/pypar2/src/main.py $fs/usr/bin/pypar2
pascal@18655 36 }
al@18657 37