wok-6.x annotate pyradio/receipt @ rev 13605

Up: kmod (11)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Nov 10 19:54:06 2012 +0100 (2012-11-10)
parents
children bf4a09ef1d2e
rev   line source
paul@11677 1 # SliTaz package receipt.
paul@11677 2
paul@11677 3 PACKAGE="pyradio"
paul@11677 4 VERSION="0.4"
paul@11677 5 CATEGORY="multimedia"
paul@11677 6 SHORT_DESC="Ncurses internet radio player."
paul@11677 7 MAINTAINER="paul@slitaz.org"
paul@11677 8 DEPENDS="ncurses mplayer python"
paul@11677 9 BUILD_DEPENDS="git"
paul@11677 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@11677 11 WEB_SITE="http://www.coderholic.com/pyradio/"
paul@11677 12 WGET_URL="git|git://github.com/coderholic/pyradio.git"
paul@11677 13 BRANCH="$VERSION"
paul@11677 14
paul@11677 15 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@11677 16 genpkg_rules()
paul@11677 17 {
paul@11677 18 mkdir -p $fs/usr/bin $fs/usr/share/pyradio
paul@11677 19 cp -a $src/pyradio $fs/usr/bin
paul@11677 20 cp -a $src/stations.csv $fs/usr/share/pyradio
paul@11677 21 cp -a $src/README $fs/usr/share/pyradio
paul@11677 22 #cp -a $src/LICENCE $fs/usr/share/pyradio
paul@11677 23 }
paul@11677 24
paul@11677 25 post_install()
paul@11677 26 {
paul@11677 27 # hack for path to stations file
paul@11677 28 sed -i 's|__file__|"/usr/share/pyradio/"|g' $1/usr/bin/pyradio
paul@11677 29 }
paul@11677 30