wok-current annotate cplay/receipt @ rev 17494
xrestop: update deps
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Jan 04 11:31:30 2015 +0000 (2015-01-04) |
parents | ce9148142ee8 |
children | dfef8de3d270 |
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@15721 | 42 modprobe snd-pcm-oss |
pascal@15721 | 43 status |
pascal@15721 | 44 } |
pascal@15721 | 45 |