wok annotate pyradio/receipt @ rev 25601
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 16 18:06:38 2023 +0000 (17 months ago) |
parents | 5ea0ce1cecc0 |
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@25601 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
mojo@21295 | 24 # Rules to configure and make the package. |
mojo@21295 | 25 compile_rules() |
mojo@21295 | 26 { |
Hans-G?nter@23464 | 27 sed -i '1a\# -*- coding: utf-8 -*-' \ |
Hans-G?nter@23464 | 28 pyradio/radio.py |
Hans-G?nter@23464 | 29 |
Hans-G?nter@23464 | 30 python setup.py build && |
mojo@21295 | 31 python setup.py install --root=$DESTDIR |
mojo@21295 | 32 } |
pascal@15376 | 33 |
paul@11677 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@11677 | 35 genpkg_rules() |
paul@11677 | 36 { |
Hans-G?nter@23464 | 37 cp -a $install/* $fs |
paul@11677 | 38 } |