wok-stable diff ncmpcpp/receipt @ rev 4740
qemulator: Add slitaz iconn for machine.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Jan 07 22:38:14 2010 +0100 (2010-01-07) |
parents | |
children | 87129639ab68 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ncmpcpp/receipt Thu Jan 07 22:38:14 2010 +0100 1.3 @@ -0,0 +1,55 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ncmpcpp" 1.7 +VERSION="0.4.1" 1.8 +CATEGORY="multimedia" 1.9 +SHORT_DESC="Ncurses mpd client inspired by ncmpc." 1.10 +MAINTAINER="paul@slitaz.org" 1.11 +DEPENDS="ncurses taglib mpd curl" 1.12 +BUILD_DEPENDS="ncurses-dev taglib taglib-dev curl-dev" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +WEB_SITE="http://unkart.ovh.org/ncmpcpp/" 1.15 +WGET_URL="http://unkart.ovh.org/ncmpcpp/$TARBALL" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + ./configure \ 1.22 + --prefix=/usr \ 1.23 + --enable-clock \ 1.24 + --with-taglib \ 1.25 + --with-curl \ 1.26 + --mandir=/usr/share/man \ 1.27 + $CONFIGURE_ARGS && 1.28 + make && make DESTDIR=$PWD/_pkg install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs/usr/share 1.35 + cp -a $_pkg/usr/bin $fs/usr 1.36 + cp -a $_pkg/usr/share/doc $fs/usr/share 1.37 +} 1.38 + 1.39 +post_install() 1.40 +{ 1.41 + echo -n "Enabling configuration files..." 1.42 + mkdir -p $1/home/tux/.ncmpcpp 1.43 + cp $1/usr/share/doc/ncmpcpp/config /home/tux/.ncmpcpp 1.44 + cp $1/usr/share/doc/ncmpcpp/keys /home/tux/.ncmpcpp 1.45 + sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/tux/music"|' /home/tux/.ncmpcpp/config 1.46 + # Change permissions also 1.47 + chown -R tux:tux /home/tux/.ncmpcpp 1.48 + status 1.49 +} 1.50 + 1.51 +post_remove() 1.52 +{ 1.53 + echo -n "Removing configuration files..." 1.54 + rm -rf /home/tux/.ncmpcpp 1.55 + status 1.56 +} 1.57 + 1.58 +