wok annotate cplay/receipt @ rev 20810

updated cplay (1.49 -> 1.50)
author Hans-G?nter Theisgen
date Sun Feb 17 17:23:27 2019 +0100 (2019-02-17)
parents 42e0165c64b9
children 46824b1012e9
rev   line source
pascal@15721 1 # SliTaz package receipt.
pascal@15721 2
pascal@15721 3 PACKAGE="cplay"
Hans-G?nter@20810 4 VERSION="1.50"
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"
Hans-G?nter@20810 9
Hans-G?nter@20810 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20810 11 WEB_SITE="https://github.com/res0nat0r/cplay"
Hans-G?nter@20810 12 #WGET_URL="git|git://github.com/res0nat0r/cplay"
Hans-G?nter@20810 13 WGET_URL="https://github.com/hukka/$PACKAGE/archive/v$VERSION.tar.gz"
Hans-G?nter@20810 14
pascal@15721 15 DEPENDS="python ncurses linux-sound"
Hans-G?nter@20810 16 BUILD_DEPENDS="python-dev ncurses-dev git gettext"
pascal@15721 17
pascal@15721 18 # Rules to configure and make the package.
pascal@15721 19 compile_rules()
pascal@15721 20 {
Hans-G?nter@20810 21 make &&
pascal@15721 22 make cplayrc
al@19315 23
al@19315 24 cook_pick_manpages cplay.1
pascal@15721 25 }
pascal@15721 26
pascal@15721 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15721 28 genpkg_rules()
pascal@15721 29 {
pascal@15721 30 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples
pascal@15721 31 cp -a $src/cplay $fs/usr/bin
pascal@15721 32 cp -a $src/cplayrc $fs/etc
pascal@15721 33 # Copy locale cplay.mo files
Hans-G?nter@20810 34 for lang in da de fr; do
pascal@15721 35 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
pascal@15721 36 cp -a $src/po/$lang.mo \
pascal@15721 37 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo
pascal@15721 38 done
pascal@15721 39 # Copy remote control files
pascal@15721 40 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples
pascal@15721 41 }
pascal@15721 42
pascal@15721 43 post_install()
pascal@15721 44 {
al@18741 45 newline
al@18741 46 action 'Modprobing snd-pcm-oss for legacy volume controls...'
pascal@17552 47 [ "$1" ] || modprobe snd-pcm-oss
pascal@15721 48 status
pascal@15721 49 }