wok-6.x view easytag/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents bc6263eb0ffe
children
line source
1 # SliTaz package receipt.
3 PACKAGE="easytag"
4 VERSION="2.4.3"
5 CATEGORY="multimedia"
6 TAGS="audio"
7 SHORT_DESC="Utility for viewing and editing tags on sound files."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://wiki.gnome.org/Apps/EasyTAG"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
15 DEPENDS="flac gcc-lib-base gtk+3 id3lib libid3tag libvorbis xorg-libXdamage"
16 BUILD_DEPENDS="expat-dev gtk+3-dev id3lib id3lib-dev itstool libid3tag-dev"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/icons/hicolor
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/share/applications $fs/usr/share
41 cp -a $install/usr/share/icons/hicolor/16x16 \
42 $fs/usr/share/icons/hicolor
43 cp -a $install/usr/share/icons/hicolor/48x48 \
44 $fs/usr/share/icons/hicolor
45 }