wok-next annotate pyradio/receipt @ rev 20883
Check Repology info from h* to l* packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jul 11 02:06:34 2018 +0300 (2018-07-11) |
parents | bf4a09ef1d2e |
children | d5aab818505e |
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" |
pascal@15376 | 8 LICENSE="MIT" |
paul@11677 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
paul@11677 | 10 WEB_SITE="http://www.coderholic.com/pyradio/" |
paul@11677 | 11 WGET_URL="git|git://github.com/coderholic/pyradio.git" |
paul@11677 | 12 BRANCH="$VERSION" |
paul@11677 | 13 |
pascal@15376 | 14 DEPENDS="ncurses mplayer python" |
pascal@15376 | 15 BUILD_DEPENDS="git" |
pascal@15376 | 16 |
paul@11677 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@11677 | 18 genpkg_rules() |
paul@11677 | 19 { |
paul@11677 | 20 mkdir -p $fs/usr/bin $fs/usr/share/pyradio |
paul@11677 | 21 cp -a $src/pyradio $fs/usr/bin |
paul@11677 | 22 cp -a $src/stations.csv $fs/usr/share/pyradio |
paul@11677 | 23 cp -a $src/README $fs/usr/share/pyradio |
paul@11677 | 24 #cp -a $src/LICENCE $fs/usr/share/pyradio |
paul@11677 | 25 } |
paul@11677 | 26 |
paul@11677 | 27 post_install() |
paul@11677 | 28 { |
paul@11677 | 29 # hack for path to stations file |
pascal@18730 | 30 sed -i 's|__file__|"/usr/share/pyradio/"|g' "$1/usr/bin/pyradio" |
paul@11677 | 31 } |
paul@11677 | 32 |