wok-current view pyradio/receipt @ rev 24133
Up tazinst (115)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 23 15:17:56 2021 +0000 (2021-10-23) |
parents | 99b982c720a7 |
children |
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 }