wok-next annotate ncmpcpp/receipt @ rev 20575
More fix libtool; combine libdbusmenu-gtk*
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 14 01:31:03 2018 +0300 (2018-04-14) |
parents | 6c12ac1293fc |
children | 556349764d57 |
rev | line source |
---|---|
al@20513 | 1 # SliTaz package receipt v2. |
paul@4546 | 2 |
paul@4546 | 3 PACKAGE="ncmpcpp" |
paul@13373 | 4 VERSION="0.5.10" |
paul@4546 | 5 CATEGORY="multimedia" |
al@20513 | 6 SHORT_DESC="Ncurses mpd client inspired by ncmpc" |
paul@4546 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15002 | 8 LICENSE="GPL2" |
al@20513 | 9 WEB_SITE="http://unkart.ovh.org/ncmpcpp/" |
al@20513 | 10 |
paul@4546 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@13374 | 12 WGET_URL="http://ncmpcpp.rybczak.net/stable/$TARBALL" |
paul@4546 | 13 |
pascal@15002 | 14 BUILD_DEPENDS="ncurses-dev taglib taglib-dev curl-dev libmpdclient-dev" |
pascal@15002 | 15 |
paul@4546 | 16 # Rules to configure and make the package. |
paul@4546 | 17 compile_rules() |
paul@4546 | 18 { |
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 { |
pascal@17085 | 32 mkdir -p $fs/usr/share $fs/etc/skel/.ncmpcpp |
pascal@13374 | 33 cp -a $install/usr/bin $fs/usr |
pascal@13374 | 34 cp -a $install/usr/share/doc $fs/usr/share |
pascal@17085 | 35 ln $fs/usr/share/doc/ncmpcpp/config $fs/etc/skel/.ncmpcpp |
pascal@17085 | 36 ln $fs/usr/share/doc/ncmpcpp/keys $fs/etc/skel/.ncmpcpp |
al@20513 | 37 DEPENDS="ncurses taglib mpd curl libmpdclient" |
al@20513 | 38 TAGS="music audio player" |
paul@4546 | 39 } |
paul@4546 | 40 |
al@20513 | 41 post_install() { |
al@20513 | 42 for i in $(ls "$1/home" 2>/dev/null); do |
pascal@18730 | 43 [ -d "$1/home/$i/.ncmpcpp" ] && continue |
al@20513 | 44 # Enabling configuration files for $i... |
pascal@18730 | 45 cp -a "$1/etc/skel/.ncmpcpp" "$1/home/$i/" |
pascal@18730 | 46 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' "/home/$i/.ncmpcpp/config" |
pascal@17080 | 47 # Change permissions also |
pascal@18730 | 48 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.ncmpcpp" |
pascal@17080 | 49 done |
paul@4546 | 50 } |
paul@4546 | 51 |
al@20513 | 52 post_remove() { |
pascal@17080 | 53 rm -rf /home/*/.ncmpcpp |
paul@4546 | 54 } |