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

librsvg: try fix libtool
author Hans-G?nter Theisgen
date Mon May 04 07:56:50 2020 +0100 (2020-05-04)
parents def96b81ebd9
children 5ea0ce1cecc0
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/(principal ou auxilliaire)/(principal ou auxilliaire)\\n/' po/fr.po
23 make &&
24 make cplayrc
26 cook_pick_manpages cplay.1
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples
33 cp -a $src/cplay $fs/usr/bin
34 cp -a $src/cplayrc $fs/etc
35 # Copy locale cplay.mo files
36 for lang in da de fr; do
37 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
38 cp -a $src/po/$lang.mo \
39 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo
40 done
41 # Copy remote control files
42 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples
43 }
45 post_install()
46 {
47 newline
48 action 'Modprobing snd-pcm-oss for legacy volume controls...'
49 [ "$1" ] || modprobe snd-pcm-oss
50 status
51 }