# SliTaz package receipt.

PACKAGE="pyradio"
VERSION="0.4"
CATEGORY="multimedia"
SHORT_DESC="Ncurses internet radio player."
MAINTAINER="paul@slitaz.org"
DEPENDS="ncurses mplayer python"
BUILD_DEPENDS="git"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.coderholic.com/pyradio/"
WGET_URL="git|git://github.com/coderholic/pyradio.git"
BRANCH="$VERSION"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin $fs/usr/share/pyradio
	cp -a $src/pyradio $fs/usr/bin
	cp -a $src/stations.csv $fs/usr/share/pyradio
	cp -a $src/README $fs/usr/share/pyradio
	#cp -a $src/LICENCE $fs/usr/share/pyradio
}

post_install()
{
	# hack for path to stations file
	sed -i 's|__file__|"/usr/share/pyradio/"|g' $1/usr/bin/pyradio 
}