wok-6.x view ncmpcpp/receipt @ rev 12002

clex: new icon
author Samuel Trassare <samuel_trassare@yahoo.com>
date Mon Mar 05 08:55:01 2012 -0800 (2012-03-05)
parents f299203cbad6
children 3f5ab215b5b9
line source
1 # SliTaz package receipt.
3 PACKAGE="ncmpcpp"
4 VERSION="0.5.8"
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:users /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 }