wok-undigest annotate cplay/receipt @ rev 1038
gcc: remove wrong error trigger (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 14 22:33:37 2013 +0000 (2013-10-14) |
parents | 04f3f17d61fe |
children |
rev | line source |
---|---|
paul@1026 | 1 # SliTaz package receipt. |
paul@1026 | 2 |
paul@1026 | 3 PACKAGE="cplay" |
paul@1026 | 4 VERSION="1.49" |
paul@1026 | 5 CATEGORY="multimedia" |
paul@1026 | 6 SHORT_DESC="Cplay is an ncurses front-end for various audio players." |
paul@1026 | 7 MAINTAINER="paul@slitaz.org" |
paul@1033 | 8 LICENSE="GPL2" |
paul@1026 | 9 DEPENDS="python ncurses linux-sound" |
paul@1026 | 10 BUILD_DEPENDS="python-dev ncurses-dev git bzip2 gettext" |
paul@1026 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
paul@1026 | 12 WEB_SITE="https://github.com/res0nat0r/cplay" |
paul@1026 | 13 WGET_URL="git|"git://github.com/res0nat0r/cplay |
paul@1026 | 14 |
paul@1026 | 15 # Rules to configure and make the package. |
paul@1026 | 16 compile_rules() |
paul@1026 | 17 { |
paul@1026 | 18 cd $src |
paul@1026 | 19 make |
paul@1026 | 20 make cplayrc |
paul@1026 | 21 } |
paul@1026 | 22 |
paul@1026 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@1026 | 24 genpkg_rules() |
paul@1026 | 25 { |
paul@1032 | 26 mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples |
paul@1026 | 27 cp -a $src/cplay $fs/usr/bin |
paul@1026 | 28 cp -a $src/cplayrc $fs/etc |
paul@1032 | 29 # Copy locale cplay.mo files |
paul@1032 | 30 for lang in da de hu pl; do |
paul@1032 | 31 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
paul@1032 | 32 cp -a $src/po/$lang.mo \ |
paul@1032 | 33 $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo |
paul@1032 | 34 done |
paul@1032 | 35 # Copy remote control files |
paul@1032 | 36 cp -a $src/lircrc $fs/usr/share/doc/cplay/examples |
paul@1026 | 37 } |
paul@1026 | 38 |
paul@1026 | 39 post_install() |
paul@1026 | 40 { |
paul@1026 | 41 echo "Processing post-install commands..." |
paul@1026 | 42 echo -n "Modprobing snd-pcm-oss for legacy volume controls..." |
paul@1026 | 43 modprobe snd-pcm-oss |
paul@1026 | 44 status |
paul@1026 | 45 } |
paul@1026 | 46 |