wok-next annotate cplay/receipt @ rev 20249

lincity-ng: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 07 12:01:40 2017 +0100 (2017-11-07)
parents 6fab3264ba87
children b84b01f3048e
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
al@19315 20
al@19315 21 cook_pick_manpages cplay.1
pascal@15721 22 }
pascal@15721 23
pascal@15721 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 25 genpkg_rules()
pascal@15721 26 {
pascal@15721 27 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples
pascal@15721 28 cp -a $src/cplay $fs/usr/bin
pascal@15721 29 cp -a $src/cplayrc $fs/etc
pascal@15721 30 # Copy locale cplay.mo files
pascal@15721 31 for lang in da de hu pl; do
pascal@15721 32 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
pascal@15721 33 cp -a $src/po/$lang.mo \
pascal@15721 34 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo
pascal@15721 35 done
pascal@15721 36 # Copy remote control files
pascal@15721 37 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples
pascal@15721 38 }
pascal@15721 39
pascal@15721 40 post_install()
pascal@15721 41 {
al@18741 42 newline
al@18741 43 action 'Modprobing snd-pcm-oss for legacy volume controls...'
pascal@17552 44 [ "$1" ] || modprobe snd-pcm-oss
pascal@15721 45 status
pascal@15721 46 }