wok-next diff ncmpcpp/receipt @ rev 20564
shell-detector, screenfetch: create $install tree
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 10 10:14:26 2018 +0200 (2018-04-10) |
parents | 6c12ac1293fc |
children | 556349764d57 |
line diff
1.1 --- a/ncmpcpp/receipt Mon Oct 16 13:38:21 2017 +0200 1.2 +++ b/ncmpcpp/receipt Tue Apr 10 10:14:26 2018 +0200 1.3 @@ -1,17 +1,16 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ncmpcpp" 1.8 VERSION="0.5.10" 1.9 CATEGORY="multimedia" 1.10 -SHORT_DESC="Ncurses mpd client inspired by ncmpc." 1.11 +SHORT_DESC="Ncurses mpd client inspired by ncmpc" 1.12 MAINTAINER="paul@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://unkart.ovh.org/ncmpcpp/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://unkart.ovh.org/ncmpcpp/" 1.18 WGET_URL="http://ncmpcpp.rybczak.net/stable/$TARBALL" 1.19 -TAGS="music audio player" 1.20 1.21 -DEPENDS="ncurses taglib mpd curl libmpdclient" 1.22 BUILD_DEPENDS="ncurses-dev taglib taglib-dev curl-dev libmpdclient-dev" 1.23 1.24 # Rules to configure and make the package. 1.25 @@ -35,24 +34,21 @@ 1.26 cp -a $install/usr/share/doc $fs/usr/share 1.27 ln $fs/usr/share/doc/ncmpcpp/config $fs/etc/skel/.ncmpcpp 1.28 ln $fs/usr/share/doc/ncmpcpp/keys $fs/etc/skel/.ncmpcpp 1.29 +DEPENDS="ncurses taglib mpd curl libmpdclient" 1.30 +TAGS="music audio player" 1.31 } 1.32 1.33 -post_install() 1.34 -{ 1.35 - for i in $(ls "$1/home" 2> /dev/null); do 1.36 +post_install() { 1.37 + for i in $(ls "$1/home" 2>/dev/null); do 1.38 [ -d "$1/home/$i/.ncmpcpp" ] && continue 1.39 - echo -n "Enabling configuration files for $i ..." 1.40 + # Enabling configuration files for $i... 1.41 cp -a "$1/etc/skel/.ncmpcpp" "$1/home/$i/" 1.42 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/'$i'/music"|' "/home/$i/.ncmpcpp/config" 1.43 # Change permissions also 1.44 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.ncmpcpp" 1.45 done 1.46 - status 1.47 } 1.48 1.49 -post_remove() 1.50 -{ 1.51 - echo -n "Removing configuration files..." 1.52 +post_remove() { 1.53 rm -rf /home/*/.ncmpcpp 1.54 - status 1.55 }