wok view picard/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 28e9861b5cd7
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="picard"
4 VERSION="2.3.1"
5 CATEGORY="utilities"
6 SHORT_DESC="A cross-platform music tagger written in Python."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://picard.musicbrainz.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/metabrainz/$PACKAGE/archive/release-$VERSION.tar.gz"
14 DEPENDS="mutagen py3k PyQt-x11-gpl"
15 BUILD_DEPENDS="gettext mutagen py3k-dev PyQt-x11-gpl "
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python3 setup.py install --root="$install"
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 cp -a $install/* $fs
33 }