wok-next annotate ncmpcpp/receipt @ rev 17004
Add libjson-c
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 12 13:24:09 2014 +0200 (2014-08-12) |
parents | 126b68f54ad4 |
children | 633aff33b052 |
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@15002 | 8 LICENSE="GPL2" |
paul@4546 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
paul@4546 | 10 WEB_SITE="http://unkart.ovh.org/ncmpcpp/" |
pascal@13374 | 11 WGET_URL="http://ncmpcpp.rybczak.net/stable/$TARBALL" |
jozee@4969 | 12 TAGS="music audio player" |
paul@4546 | 13 |
pascal@15002 | 14 DEPENDS="ncurses taglib mpd curl libmpdclient ncursesw" |
pascal@15002 | 15 BUILD_DEPENDS="ncurses-dev taglib taglib-dev curl-dev libmpdclient-dev" |
pascal@15002 | 16 |
paul@4546 | 17 # Rules to configure and make the package. |
paul@4546 | 18 compile_rules() |
paul@4546 | 19 { |
paul@4546 | 20 cd $src |
paul@4546 | 21 ./configure \ |
paul@4546 | 22 --prefix=/usr \ |
paul@4546 | 23 --enable-clock \ |
paul@4546 | 24 --with-taglib \ |
paul@4546 | 25 --with-curl \ |
paul@4546 | 26 --mandir=/usr/share/man \ |
paul@4546 | 27 $CONFIGURE_ARGS && |
slaxemulator@10205 | 28 make && make install |
paul@4546 | 29 } |
paul@4546 | 30 |
paul@4546 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4546 | 32 genpkg_rules() |
paul@4546 | 33 { |
paul@4546 | 34 mkdir -p $fs/usr/share |
pascal@13374 | 35 cp -a $install/usr/bin $fs/usr |
pascal@13374 | 36 cp -a $install/usr/share/doc $fs/usr/share |
paul@4546 | 37 } |
paul@4546 | 38 |
paul@4546 | 39 post_install() |
paul@4546 | 40 { |
paul@4546 | 41 echo -n "Enabling configuration files..." |
paul@4546 | 42 mkdir -p $1/home/tux/.ncmpcpp |
paul@4546 | 43 cp $1/usr/share/doc/ncmpcpp/config /home/tux/.ncmpcpp |
paul@4546 | 44 cp $1/usr/share/doc/ncmpcpp/keys /home/tux/.ncmpcpp |
paul@4546 | 45 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/tux/music"|' /home/tux/.ncmpcpp/config |
paul@4546 | 46 # Change permissions also |
paul@11815 | 47 chown -R tux:users /home/tux/.ncmpcpp |
paul@4546 | 48 status |
paul@4546 | 49 } |
paul@4546 | 50 |
paul@4546 | 51 post_remove() |
paul@4546 | 52 { |
paul@4546 | 53 echo -n "Removing configuration files..." |
paul@4546 | 54 rm -rf /home/tux/.ncmpcpp |
paul@4546 | 55 status |
paul@4546 | 56 } |
paul@4546 | 57 |
paul@4546 | 58 |