wok-next annotate ncmpcpp/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 556349764d57 |
children |
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@20906 | 9 WEB_SITE="https://rybczak.net/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 |
al@20599 | 16 compile_rules() { |
paul@4546 | 17 ./configure \ |
paul@4546 | 18 --enable-clock \ |
paul@4546 | 19 --with-taglib \ |
paul@4546 | 20 --with-curl \ |
paul@4546 | 21 $CONFIGURE_ARGS && |
al@20599 | 22 fix libtool && |
al@20599 | 23 make && |
al@20599 | 24 make install || return 1 |
al@20599 | 25 |
al@20599 | 26 mkdir -p $install/etc/skel/.ncmpcpp/ |
al@20599 | 27 cp $install/usr/share/doc/ncmpcpp/config \ |
al@20599 | 28 $install/usr/share/doc/ncmpcpp/keys $install/etc/skel/.ncmpcpp/ |
paul@4546 | 29 } |
paul@4546 | 30 |
al@20599 | 31 genpkg_rules() { |
al@20599 | 32 copy @std |
al@20599 | 33 DEPENDS="ncurses taglib mpd curl libmpdclient" |
al@20599 | 34 TAGS="music audio player" |
paul@4546 | 35 } |
paul@4546 | 36 |
al@20513 | 37 post_install() { |
al@20513 | 38 for i in $(ls "$1/home" 2>/dev/null); do |
pascal@18730 | 39 [ -d "$1/home/$i/.ncmpcpp" ] && continue |
al@20513 | 40 # Enabling configuration files for $i... |
pascal@18730 | 41 cp -a "$1/etc/skel/.ncmpcpp" "$1/home/$i/" |
pascal@18730 | 42 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' "/home/$i/.ncmpcpp/config" |
pascal@17080 | 43 # Change permissions also |
pascal@18730 | 44 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.ncmpcpp" |
pascal@17080 | 45 done |
paul@4546 | 46 } |
paul@4546 | 47 |
al@20513 | 48 post_remove() { |
pascal@17080 | 49 rm -rf /home/*/.ncmpcpp |
paul@4546 | 50 } |