# SliTaz package receipt. PACKAGE="cplay" VERSION="1.50" CATEGORY="multimedia" SHORT_DESC="Cplay is an ncurses front-end for various audio players." MAINTAINER="paul@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://github.com/res0nat0r/cplay" #WGET_URL="git|git://github.com/res0nat0r/cplay" WGET_URL="https://github.com/hukka/$PACKAGE/archive/v$VERSION.tar.gz" DEPENDS="python ncurses linux-sound" BUILD_DEPENDS="python-dev ncurses-dev git gettext" current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { sed -i 's/(principal ou auxilliaire)/(principal ou auxilliaire)\\n/' po/fr.po make && make cplayrc cook_pick_manpages cplay.1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/etc $fs/usr/share/doc/cplay/examples cp -a $src/cplay $fs/usr/bin cp -a $src/cplayrc $fs/etc # Copy locale cplay.mo files for lang in da de fr; do mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES cp -a $src/po/$lang.mo \ $fs/usr/share/locale/$lang/LC_MESSAGES/cplay.mo done # Copy remote control files cp -a $src/lircrc $fs/usr/share/doc/cplay/examples } post_install() { newline action 'Modprobing snd-pcm-oss for legacy volume controls...' [ "$1" ] || modprobe snd-pcm-oss status }