wok-6.x view picard/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | 28e9861b5cd7 |
children |
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 }