wok annotate cplay/receipt @ rev 24918
updated moosefs (3.0.111 -> 3.0.116)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 10 06:58:04 2022 +0100 (2022-04-10) |
parents | 5ea0ce1cecc0 |
children |
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@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24299 | 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@15721 | 24 # Rules to configure and make the package. |
pascal@15721 | 25 compile_rules() |
pascal@15721 | 26 { |
Hans-G?nter@20811 | 27 sed -i 's/(principal ou auxilliaire)/(principal ou auxilliaire)\\n/' po/fr.po |
Hans-G?nter@20811 | 28 |
Hans-G?nter@20810 | 29 make && |
pascal@15721 | 30 make cplayrc |
al@19315 | 31 |
al@19315 | 32 cook_pick_manpages cplay.1 |
pascal@15721 | 33 } |
pascal@15721 | 34 |
pascal@15721 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@15721 | 36 genpkg_rules() |
pascal@15721 | 37 { |
pascal@15721 | 38 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 39 cp -a $src/cplay $fs/usr/bin |
pascal@15721 | 40 cp -a $src/cplayrc $fs/etc |
pascal@15721 | 41 # Copy locale cplay.mo files |
Hans-G?nter@20810 | 42 for lang in da de fr; do |
pascal@15721 | 43 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
pascal@15721 | 44 cp -a $src/po/$lang.mo \ |
pascal@15721 | 45 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo |
pascal@15721 | 46 done |
pascal@15721 | 47 # Copy remote control files |
pascal@15721 | 48 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples |
pascal@15721 | 49 } |
pascal@15721 | 50 |
pascal@15721 | 51 post_install() |
pascal@15721 | 52 { |
al@18741 | 53 newline |
al@18741 | 54 action 'Modprobing snd-pcm-oss for legacy volume controls...' |
pascal@17552 | 55 [ "$1" ] || modprobe snd-pcm-oss |
pascal@15721 | 56 status |
pascal@15721 | 57 } |