wok-current annotate quodlibet/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 20661c276bcf |
children | e1e1678c5265 |
rev | line source |
---|---|
jozee@2678 | 1 # SliTaz package receipt. |
jozee@2678 | 2 |
jozee@2678 | 3 PACKAGE="quodlibet" |
jozee@2678 | 4 VERSION="2.0" |
jozee@2678 | 5 CATEGORY="multimedia" |
jozee@2678 | 6 SHORT_DESC="An audio player written in pygtk" |
jozee@2678 | 7 MAINTAINER="jozee@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@17482 | 9 SUGGESTED="gst-plugins-bad gst-ffmpeg" |
jozee@2678 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20682 | 11 WEB_SITE="https://github.com/quodlibet/quodlibet" |
jozee@2678 | 12 WGET_URL="$WEB_SITE/files/$TARBALL" |
jozee@4971 | 13 TAGS="multimedia audio sound music player python" |
jozee@2678 | 14 |
pascal@11879 | 15 DEPENDS="dbus-python gst-python gst-plugins-base gst-plugins-good \ |
pascal@11879 | 16 gst-plugins-ugly mutagen pygtk gstreamer" |
pascal@11879 | 17 BUILD_DEPENDS="dbus-python-dev gst-python-dev gst-plugins-base-dev \ |
pascal@11879 | 18 gst-plugins-good-dev gstreamer-dev gst-plugins-ugly-dev pygtk-dev intltool \ |
pascal@15263 | 19 gettext gtk+-dev python-dev file" |
pascal@11879 | 20 |
pascal@24308 | 21 # What is the latest version available today? |
pascal@24308 | 22 current_version() |
pascal@24308 | 23 { |
pascal@24308 | 24 wget -O - $WEB_SITE/releases 2>/dev/null | \ |
pascal@24308 | 25 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24308 | 26 } |
pascal@24308 | 27 |
jozee@2678 | 28 # Rules to configure and make the package. |
jozee@2678 | 29 compile_rules() |
jozee@2678 | 30 { |
al@18086 | 31 ./setup.py build |
pascal@15000 | 32 ./setup.py install --prefix=$DESTDIR/usr |
jozee@2678 | 33 } |
jozee@2678 | 34 |
jozee@2678 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@2678 | 36 genpkg_rules() |
jozee@2678 | 37 { |
jozee@2678 | 38 mkdir -p $fs/usr/lib $fs/usr/share $fs/usr/share/pixmaps |
pascal@15000 | 39 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 40 cp -a $install/usr/lib/python* $fs/usr/lib |
jozee@2678 | 41 cp -a stuff/*.png $fs/usr/share/pixmaps/ |
jozee@2678 | 42 } |