wok view ncmpcpp/receipt @ rev 11299

Up: tinyproxy (1.8.3)
author Alexander Medvedev <devl547@gmail.com>
date Sat Nov 12 22:09:34 2011 +0000 (2011-11-12)
parents 17b1eae0342e
children 301b0b1e9b80
line source
1 # SliTaz package receipt.
3 PACKAGE="ncmpcpp"
4 VERSION="0.5.7"
5 CATEGORY="multimedia"
6 SHORT_DESC="Ncurses mpd client inspired by ncmpc."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="ncurses taglib mpd curl libmpdclient ncursesw"
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 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 }