wok-6.x annotate cplay/receipt @ rev 16718
Add pifmrds (does not build yet)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 01 17:53:40 2014 +0000 (2014-06-01) |
parents | |
children | 60d3db644e56 |
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@15721 | 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 cd $src |
pascal@15721 | 19 make |
pascal@15721 | 20 make cplayrc |
pascal@15721 | 21 } |
pascal@15721 | 22 |
pascal@15721 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 24 genpkg_rules() |
pascal@15721 | 25 { |
pascal@15721 | 26 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 27 cp -a $src/cplay $fs/usr/bin |
pascal@15721 | 28 cp -a $src/cplayrc $fs/etc |
pascal@15721 | 29 # Copy locale cplay.mo files |
pascal@15721 | 30 for lang in da de hu pl; do |
pascal@15721 | 31 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
pascal@15721 | 32 cp -a $src/po/$lang.mo \ |
pascal@15721 | 33 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo |
pascal@15721 | 34 done |
pascal@15721 | 35 # Copy remote control files |
pascal@15721 | 36 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 37 } |
pascal@15721 | 38 |
pascal@15721 | 39 post_install() |
pascal@15721 | 40 { |
pascal@15721 | 41 echo "Processing post-install commands..." |
pascal@15721 | 42 echo -n "Modprobing snd-pcm-oss for legacy volume controls..." |
pascal@15721 | 43 modprobe snd-pcm-oss |
pascal@15721 | 44 status |
pascal@15721 | 45 } |
pascal@15721 | 46 |