wok view ncmpcpp/receipt @ rev 6437

Add: frogatto & frogatto-data 1.0.3
author Antoine Bodin <gokhlayeh@mailoo.org>
date Tue Sep 28 00:23:13 2010 +0200 (2010-09-28)
parents 5b44af8c1257
children 4086aef77274
line source
1 # SliTaz package receipt.
3 PACKAGE="ncmpcpp"
4 VERSION="0.5.3"
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 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 }