wok rev 11677

Add pyradio
author Paul Issott <paul@slitaz.org>
date Sat Feb 18 09:50:02 2012 +0000 (2012-02-18)
parents fd59449e3608
children eec0b2ea3e5b
files pyradio/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pyradio/receipt	Sat Feb 18 09:50:02 2012 +0000
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pyradio"
     1.7 +VERSION="0.4"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="Ncurses internet radio player."
    1.10 +MAINTAINER="paul@slitaz.org"
    1.11 +DEPENDS="ncurses mplayer python"
    1.12 +BUILD_DEPENDS="git"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://www.coderholic.com/pyradio/"
    1.15 +WGET_URL="git|git://github.com/coderholic/pyradio.git"
    1.16 +BRANCH="$VERSION"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	mkdir -p $fs/usr/bin $fs/usr/share/pyradio
    1.22 +	cp -a $src/pyradio $fs/usr/bin
    1.23 +	cp -a $src/stations.csv $fs/usr/share/pyradio
    1.24 +	cp -a $src/README $fs/usr/share/pyradio
    1.25 +	#cp -a $src/LICENCE $fs/usr/share/pyradio
    1.26 +}
    1.27 +
    1.28 +post_install()
    1.29 +{
    1.30 +	# hack for path to stations file
    1.31 +	sed -i 's|__file__|"/usr/share/pyradio/"|g' $1/usr/bin/pyradio 
    1.32 +}
    1.33 +