wok view gnomad2/receipt @ rev 24433
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 12 18:42:31 2022 +0000 (2022-02-12) |
parents | ebeb5245c065 |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gnomad2"
4 VERSION="2.9.6"
5 CATEGORY="multimedia"
6 SHORT_DESC="GTK+ music manager and swiss army knife for the Creative Labs NOMAD and Zen range."
7 MAINTAINER="keupont@no-log.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://gnomad2.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="dbus-glib freetype glibc gtk+ hal libid3tag
15 libmtp libnjb libusb-compat taglib"
16 BUILD_DEPENDS="glib-dev gtk+-dev hal-dev intltool libid3tag-dev libmtp-dev
17 libnjb-dev libusb-compat-dev taglib-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/gnomad2/files/gnomad2/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*%20||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure &&
31 make &&
32 make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 }