wok view ncmpcpp/receipt @ rev 4969

add/improve TAGS n* receipts
author Rohit Joshi <jozee@slitaz.org>
date Wed Feb 24 10:31:06 2010 +0000 (2010-02-24)
parents 87129639ab68
children 5b44af8c1257
line source
1 # SliTaz package receipt.
3 PACKAGE="ncmpcpp"
4 VERSION="0.5"
5 CATEGORY="multimedia"
6 SHORT_DESC="Ncurses mpd client inspired by ncmpc."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="ncurses taglib mpd curl libmpdclient"
9 BUILD_DEPENDS="ncurses-dev taglib taglib-dev curl-dev libmpdclient-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://unkart.ovh.org/ncmpcpp/"
12 WGET_URL="http://unkart.ovh.org/ncmpcpp/$TARBALL"
13 TAGS="music audio player"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --enable-clock \
22 --with-taglib \
23 --with-curl \
24 --mandir=/usr/share/man \
25 $CONFIGURE_ARGS &&
26 make && make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/share/doc $fs/usr/share
35 }
37 post_install()
38 {
39 echo -n "Enabling configuration files..."
40 mkdir -p $1/home/tux/.ncmpcpp
41 cp $1/usr/share/doc/ncmpcpp/config /home/tux/.ncmpcpp
42 cp $1/usr/share/doc/ncmpcpp/keys /home/tux/.ncmpcpp
43 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/tux/music"|' /home/tux/.ncmpcpp/config
44 # Change permissions also
45 chown -R tux:tux /home/tux/.ncmpcpp
46 status
47 }
49 post_remove()
50 {
51 echo -n "Removing configuration files..."
52 rm -rf /home/tux/.ncmpcpp
53 status
54 }