wok-current annotate cplay/receipt @ rev 17676
rogue: add missing -ltinfo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 18 11:35:54 2015 +0100 (2015-02-18) |
parents | 60d3db644e56 |
children | 6fab3264ba87 |
rev | line source |
---|---|
pascal@15721 | 1 # SliTaz package receipt. |
pascal@15721 | 2 |
pascal@15721 | 3 PACKAGE="cplay" |
pascal@15721 | 4 VERSION="1.49" |
pascal@15721 | 5 CATEGORY="multimedia" |
pascal@15721 | 6 SHORT_DESC="Cplay is an ncurses front-end for various audio players." |
pascal@15721 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15721 | 8 LICENSE="GPL2" |
pascal@15721 | 9 DEPENDS="python ncurses linux-sound" |
pascal@15721 | 10 BUILD_DEPENDS="python-dev ncurses-dev git bzip2 gettext" |
pascal@15721 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@15721 | 12 WEB_SITE="https://github.com/res0nat0r/cplay" |
pascal@17386 | 13 WGET_URL="git|git://github.com/res0nat0r/cplay" |
pascal@15721 | 14 |
pascal@15721 | 15 # Rules to configure and make the package. |
pascal@15721 | 16 compile_rules() |
pascal@15721 | 17 { |
pascal@15721 | 18 make |
pascal@15721 | 19 make cplayrc |
pascal@15721 | 20 } |
pascal@15721 | 21 |
pascal@15721 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 23 genpkg_rules() |
pascal@15721 | 24 { |
pascal@15721 | 25 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 26 cp -a $src/cplay $fs/usr/bin |
pascal@15721 | 27 cp -a $src/cplayrc $fs/etc |
pascal@15721 | 28 # Copy locale cplay.mo files |
pascal@15721 | 29 for lang in da de hu pl; do |
pascal@15721 | 30 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
pascal@15721 | 31 cp -a $src/po/$lang.mo \ |
pascal@15721 | 32 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo |
pascal@15721 | 33 done |
pascal@15721 | 34 # Copy remote control files |
pascal@15721 | 35 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 36 } |
pascal@15721 | 37 |
pascal@15721 | 38 post_install() |
pascal@15721 | 39 { |
pascal@15721 | 40 echo "Processing post-install commands..." |
pascal@15721 | 41 echo -n "Modprobing snd-pcm-oss for legacy volume controls..." |
pascal@17552 | 42 [ "$1" ] || modprobe snd-pcm-oss |
pascal@15721 | 43 status |
pascal@15721 | 44 } |
pascal@15721 | 45 |