wok annotate easytag/receipt @ rev 24887

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