wok view ncmpcpp/receipt @ rev 14931
Up: eet-dev (1.7.8)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Aug 08 19:15:36 2013 +0200 (2013-08-08) |
parents | 3f5ab215b5b9 |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ncmpcpp"
4 VERSION="0.5.10"
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://ncmpcpp.rybczak.net/stable/$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 $install/usr/bin $fs/usr
34 cp -a $install/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 }