wok-6.x annotate pyradio/receipt @ rev 24076
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 08 13:19:25 2021 +0000 (2021-07-08) |
parents | 99b982c720a7 |
children |
rev | line source |
---|---|
paul@11677 | 1 # SliTaz package receipt. |
paul@11677 | 2 |
paul@11677 | 3 PACKAGE="pyradio" |
Hans-G?nter@23464 | 4 VERSION="0.8.7.2" |
paul@11677 | 5 CATEGORY="multimedia" |
paul@11677 | 6 SHORT_DESC="Ncurses internet radio player." |
paul@11677 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15376 | 8 LICENSE="MIT" |
Hans-G?nter@23464 | 9 WEB_SITE="https://www.coderholic.com/pyradio/" |
paul@11677 | 10 |
Hans-G?nter@23464 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23464 | 12 WGET_URL="https://github.com/coderholic/$PACKAGE/archive/$VERSION.tar.gz" |
Hans-G?nter@23464 | 13 |
Hans-G?nter@23464 | 14 DEPENDS="mplayer ncurses python" |
Hans-G?nter@23464 | 15 BUILD_DEPENDS="python-setuptools" |
mojo@21295 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
mojo@21295 | 23 # Rules to configure and make the package. |
mojo@21295 | 24 compile_rules() |
mojo@21295 | 25 { |
Hans-G?nter@23464 | 26 sed -i '1a\# -*- coding: utf-8 -*-' \ |
Hans-G?nter@23464 | 27 pyradio/radio.py |
Hans-G?nter@23464 | 28 |
Hans-G?nter@23464 | 29 python setup.py build && |
mojo@21295 | 30 python setup.py install --root=$DESTDIR |
mojo@21295 | 31 } |
pascal@15376 | 32 |
paul@11677 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@11677 | 34 genpkg_rules() |
paul@11677 | 35 { |
Hans-G?nter@23464 | 36 cp -a $install/* $fs |
paul@11677 | 37 } |