wok-current view ncmpcpp/receipt @ rev 4863
xz: add wrapper...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 03 22:37:34 2010 +0100 (2010-02-03) |
parents | 1348f91a1c62 |
children | bee79018e13a |
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --enable-clock \
21 --with-taglib \
22 --with-curl \
23 --mandir=/usr/share/man \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/share/doc $fs/usr/share
34 }
36 post_install()
37 {
38 echo -n "Enabling configuration files..."
39 mkdir -p $1/home/tux/.ncmpcpp
40 cp $1/usr/share/doc/ncmpcpp/config /home/tux/.ncmpcpp
41 cp $1/usr/share/doc/ncmpcpp/keys /home/tux/.ncmpcpp
42 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/tux/music"|' /home/tux/.ncmpcpp/config
43 # Change permissions also
44 chown -R tux:tux /home/tux/.ncmpcpp
45 status
46 }
48 post_remove()
49 {
50 echo -n "Removing configuration files..."
51 rm -rf /home/tux/.ncmpcpp
52 status
53 }