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