wok-current view 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 |
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 make &&
22 make cplayrc
24 cook_pick_manpages cplay.1
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples
31 cp -a $src/cplay $fs/usr/bin
32 cp -a $src/cplayrc $fs/etc
33 # Copy locale cplay.mo files
34 for lang in da de fr; do
35 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
36 cp -a $src/po/$lang.mo \
37 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo
38 done
39 # Copy remote control files
40 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples
41 }
43 post_install()
44 {
45 newline
46 action 'Modprobing snd-pcm-oss for legacy volume controls...'
47 [ "$1" ] || modprobe snd-pcm-oss
48 status
49 }