wok rev 21295

Up pyradio (0.7.4)
author Richard Dunbar <mojo@slitaz.org>
date Wed Apr 17 00:53:31 2019 -0400 (2019-04-17)
parents 0f34431339cc
children be444bbbf690
files pyradio/receipt
line diff
     1.1 --- a/pyradio/receipt	Tue Apr 16 20:48:28 2019 +0100
     1.2 +++ b/pyradio/receipt	Wed Apr 17 00:53:31 2019 -0400
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="pyradio"
     1.7 -VERSION="0.4"
     1.8 +VERSION="0.7.4"
     1.9  CATEGORY="multimedia"
    1.10  SHORT_DESC="Ncurses internet radio player."
    1.11  MAINTAINER="paul@slitaz.org"
    1.12 @@ -12,21 +12,20 @@
    1.13  BRANCH="$VERSION"
    1.14  
    1.15  DEPENDS="ncurses mplayer python"
    1.16 -BUILD_DEPENDS="git"
    1.17 +BUILD_DEPENDS="git setuptools"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	sed -i '1a\# -*- coding: utf-8 -*-' pyradio/radio.py 
    1.23 +	python setup.py build
    1.24 +	python setup.py install --root=$DESTDIR
    1.25 +}
    1.26  
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.28  genpkg_rules()
    1.29  {
    1.30 -	mkdir -p $fs/usr/bin $fs/usr/share/pyradio
    1.31 -	cp -a $src/pyradio $fs/usr/bin
    1.32 -	cp -a $src/stations.csv $fs/usr/share/pyradio
    1.33 -	cp -a $src/README $fs/usr/share/pyradio
    1.34 -	#cp -a $src/LICENCE $fs/usr/share/pyradio
    1.35 +	cp -a $install/* $fs
    1.36  }
    1.37  
    1.38 -post_install()
    1.39 -{
    1.40 -	# hack for path to stations file
    1.41 -	sed -i 's|__file__|"/usr/share/pyradio/"|g' "$1/usr/bin/pyradio"
    1.42 -}
    1.43