wok-current annotate cplay/receipt @ rev 22044
updated tmux (2.0 -> 2.9)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Oct 22 13:52:50 2019 +0100 (2019-10-22) |
parents | def96b81ebd9 |
children | 5ea0ce1cecc0 |
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@20811 | 21 sed -i 's/(principal ou auxilliaire)/(principal ou auxilliaire)\\n/' po/fr.po |
Hans-G?nter@20811 | 22 |
Hans-G?nter@20810 | 23 make && |
pascal@15721 | 24 make cplayrc |
al@19315 | 25 |
al@19315 | 26 cook_pick_manpages cplay.1 |
pascal@15721 | 27 } |
pascal@15721 | 28 |
pascal@15721 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 30 genpkg_rules() |
pascal@15721 | 31 { |
pascal@15721 | 32 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 33 cp -a $src/cplay $fs/usr/bin |
pascal@15721 | 34 cp -a $src/cplayrc $fs/etc |
pascal@15721 | 35 # Copy locale cplay.mo files |
Hans-G?nter@20810 | 36 for lang in da de fr; do |
pascal@15721 | 37 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
pascal@15721 | 38 cp -a $src/po/$lang.mo \ |
pascal@15721 | 39 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo |
pascal@15721 | 40 done |
pascal@15721 | 41 # Copy remote control files |
pascal@15721 | 42 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 43 } |
pascal@15721 | 44 |
pascal@15721 | 45 post_install() |
pascal@15721 | 46 { |
al@18741 | 47 newline |
al@18741 | 48 action 'Modprobing snd-pcm-oss for legacy volume controls...' |
pascal@17552 | 49 [ "$1" ] || modprobe snd-pcm-oss |
pascal@15721 | 50 status |
pascal@15721 | 51 } |