wok-current diff pyradio/receipt @ rev 21455
updated mlt again (6.4.1 -> 6.14.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 29 17:43:51 2019 +0100 (2019-04-29) |
parents | 9e01bc6321ea |
children | 5d50a02468c7 |
line diff
1.1 --- a/pyradio/receipt Sun Dec 20 15:13:45 2015 +0100 1.2 +++ b/pyradio/receipt Mon Apr 29 17:43:51 2019 +0100 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