wok view pyradio/receipt @ rev 25576
Up nimrod (1.6.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 17:57:27 2023 +0000 (19 months ago) |
parents | 99b982c720a7 |
children | 0262035dc1e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pyradio"
4 VERSION="0.8.7.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Ncurses internet radio player."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.coderholic.com/pyradio/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/coderholic/$PACKAGE/archive/$VERSION.tar.gz"
14 DEPENDS="mplayer ncurses python"
15 BUILD_DEPENDS="python-setuptools"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i '1a\# -*- coding: utf-8 -*-' \
27 pyradio/radio.py
29 python setup.py build &&
30 python setup.py install --root=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 }