# HG changeset patch # User Richard Dunbar # Date 1555476811 14400 # Node ID 338d2ab24fb755b733f0cecd0c71ca986810c191 # Parent 0f34431339cc45b0af798772c441e168830a697a Up pyradio (0.7.4) diff -r 0f34431339cc -r 338d2ab24fb7 pyradio/receipt --- a/pyradio/receipt Tue Apr 16 20:48:28 2019 +0100 +++ b/pyradio/receipt Wed Apr 17 00:53:31 2019 -0400 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="pyradio" -VERSION="0.4" +VERSION="0.7.4" CATEGORY="multimedia" SHORT_DESC="Ncurses internet radio player." MAINTAINER="paul@slitaz.org" @@ -12,21 +12,20 @@ BRANCH="$VERSION" DEPENDS="ncurses mplayer python" -BUILD_DEPENDS="git" +BUILD_DEPENDS="git setuptools" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i '1a\# -*- coding: utf-8 -*-' pyradio/radio.py + python setup.py build + python setup.py install --root=$DESTDIR +} # 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 + cp -a $install/* $fs } -post_install() -{ - # hack for path to stations file - sed -i 's|__file__|"/usr/share/pyradio/"|g' "$1/usr/bin/pyradio" -}