wok-6.x view cplay/receipt @ rev 24847

updated libusb and libusb-dev (1.0.23 -> 1.0.25)
author Hans-G?nter Theisgen
date Fri Mar 25 14:47:40 2022 +0100 (2022-03-25)
parents 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="cplay"
4 VERSION="1.50"
5 CATEGORY="multimedia"
6 SHORT_DESC="Cplay is an ncurses front-end for various audio players."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/res0nat0r/cplay"
12 #WGET_URL="git|git://github.com/res0nat0r/cplay"
13 WGET_URL="https://github.com/hukka/$PACKAGE/archive/v$VERSION.tar.gz"
15 DEPENDS="python ncurses linux-sound"
16 BUILD_DEPENDS="python-dev ncurses-dev git gettext"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/(principal ou auxilliaire)/(principal ou auxilliaire)\\n/' po/fr.po
29 make &&
30 make cplayrc
32 cook_pick_manpages cplay.1
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples
39 cp -a $src/cplay $fs/usr/bin
40 cp -a $src/cplayrc $fs/etc
41 # Copy locale cplay.mo files
42 for lang in da de fr; do
43 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
44 cp -a $src/po/$lang.mo \
45 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo
46 done
47 # Copy remote control files
48 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples
49 }
51 post_install()
52 {
53 newline
54 action 'Modprobing snd-pcm-oss for legacy volume controls...'
55 [ "$1" ] || modprobe snd-pcm-oss
56 status
57 }