wok annotate pypar2/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents b7f1bd1b9ac7
children c15fedfb9582
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@24728 7 LICENSE="GPL3"
pascal@18655 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18655 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18655 10 WEB_SITE="http://pypar2.silent-blade.org/"
pascal@18655 11 WGET_URL="$WEB_SITE/uploads/Main/$TARBALL"
pascal@18655 12
pascal@18656 13 DEPENDS="pygtk par2 python-pyxml python-vte"
al@18657 14 BUILD_DEPENDS="findutils"
pascal@18655 15
pascal@24713 16 # What is the latest version available today?
pascal@24713 17 current_version()
pascal@24713 18 {
pascal@24713 19 wget -O - https://tracker.debian.org/pkg/pypar2 2>/dev/null | \
pascal@24713 20 sed '/changelog-/!d;s|.*changelog-||;s|-.*||;q'
pascal@24713 21 }
pascal@24713 22
pascal@18655 23 # Rules to configure and make the package.
pascal@18655 24 compile_rules()
pascal@18655 25 {
al@18657 26 make prefix=/usr DESTDIR=$DESTDIR install
al@18657 27 sdft $install/usr/share/applications/pypar2.desktop \
al@18657 28 -i -s "Categories=GTK;Utility;"
pascal@18655 29 }
pascal@18655 30
pascal@18655 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18655 32 genpkg_rules()
pascal@18655 33 {
pascal@18655 34 cp -a $install/* $fs/
pascal@18656 35 rm -rf $fs/usr/share/man $fs/usr/bin/pypar2
pascal@18656 36 ln -s /usr/share/pypar2/src/main.py $fs/usr/bin/pypar2
pascal@18655 37 }
al@18657 38