wok view rhythmcat2/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 15463737adaa
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="rhythmcat2"
4 VERSION="1.9.5"
5 COMMIT="cca12d7"
6 CATEGORY="multimedia"
7 SHORT_DESC="RhythmCat2 music player"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL3"
10 WEB_SITE="https://github.com/supercatexpert/RhythmCat2"
11 TARBALL="$PACKAGE-$COMMIT.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$COMMIT.tar.gz"
14 DEPENDS="gst-plugins-base gtk+3 xorg-libXdamage"
15 BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev gtk+3-dev curl-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 patch -p1 -i $stuff/rhythmcat2.patch
27 cp $stuff/ru.po $src/po
29 ./configure \
30 --disable-gtk-doc-html \
31 --disable-introspection \
32 --with-native-plugins \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cook_copy_files RhythmCat2 *.so* *.PNG *.desktop *.mo
41 }