wok annotate ncmpcpp/receipt @ rev 14873
perl-{glib,gtk2,pango}: remove unwanted folder
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Tue Jul 23 06:26:40 2013 -0300 (2013-07-23) |
parents | 3f5ab215b5b9 |
children | 7896f0694ef6 |
rev | line source |
---|---|
paul@4546 | 1 # SliTaz package receipt. |
paul@4546 | 2 |
paul@4546 | 3 PACKAGE="ncmpcpp" |
paul@13373 | 4 VERSION="0.5.10" |
paul@4546 | 5 CATEGORY="multimedia" |
paul@4546 | 6 SHORT_DESC="Ncurses mpd client inspired by ncmpc." |
paul@4546 | 7 MAINTAINER="paul@slitaz.org" |
pascal@5004 | 8 DEPENDS="ncurses taglib mpd curl libmpdclient ncursesw" |
paul@4807 | 9 BUILD_DEPENDS="ncurses-dev taglib taglib-dev curl-dev libmpdclient-dev" |
paul@4546 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
paul@4546 | 11 WEB_SITE="http://unkart.ovh.org/ncmpcpp/" |
pascal@13374 | 12 WGET_URL="http://ncmpcpp.rybczak.net/stable/$TARBALL" |
jozee@4969 | 13 TAGS="music audio player" |
paul@4546 | 14 |
paul@4546 | 15 # Rules to configure and make the package. |
paul@4546 | 16 compile_rules() |
paul@4546 | 17 { |
paul@4546 | 18 cd $src |
paul@4546 | 19 ./configure \ |
paul@4546 | 20 --prefix=/usr \ |
paul@4546 | 21 --enable-clock \ |
paul@4546 | 22 --with-taglib \ |
paul@4546 | 23 --with-curl \ |
paul@4546 | 24 --mandir=/usr/share/man \ |
paul@4546 | 25 $CONFIGURE_ARGS && |
slaxemulator@10205 | 26 make && make install |
paul@4546 | 27 } |
paul@4546 | 28 |
paul@4546 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4546 | 30 genpkg_rules() |
paul@4546 | 31 { |
paul@4546 | 32 mkdir -p $fs/usr/share |
pascal@13374 | 33 cp -a $install/usr/bin $fs/usr |
pascal@13374 | 34 cp -a $install/usr/share/doc $fs/usr/share |
paul@4546 | 35 } |
paul@4546 | 36 |
paul@4546 | 37 post_install() |
paul@4546 | 38 { |
paul@4546 | 39 echo -n "Enabling configuration files..." |
paul@4546 | 40 mkdir -p $1/home/tux/.ncmpcpp |
paul@4546 | 41 cp $1/usr/share/doc/ncmpcpp/config /home/tux/.ncmpcpp |
paul@4546 | 42 cp $1/usr/share/doc/ncmpcpp/keys /home/tux/.ncmpcpp |
paul@4546 | 43 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/tux/music"|' /home/tux/.ncmpcpp/config |
paul@4546 | 44 # Change permissions also |
paul@11815 | 45 chown -R tux:users /home/tux/.ncmpcpp |
paul@4546 | 46 status |
paul@4546 | 47 } |
paul@4546 | 48 |
paul@4546 | 49 post_remove() |
paul@4546 | 50 { |
paul@4546 | 51 echo -n "Removing configuration files..." |
paul@4546 | 52 rm -rf /home/tux/.ncmpcpp |
paul@4546 | 53 status |
paul@4546 | 54 } |
paul@4546 | 55 |
paul@4546 | 56 |