wok-6.x annotate ncmpcpp/receipt @ rev 4832
Fix: udev custom alsa rules for sound device node
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 21 23:15:31 2010 +0100 (2010-01-21) |
parents | 1348f91a1c62 |
children | bee79018e13a |
rev | line source |
---|---|
paul@4546 | 1 # SliTaz package receipt. |
paul@4546 | 2 |
paul@4546 | 3 PACKAGE="ncmpcpp" |
paul@4807 | 4 VERSION="0.5" |
paul@4546 | 5 CATEGORY="multimedia" |
paul@4546 | 6 SHORT_DESC="Ncurses mpd client inspired by ncmpc." |
paul@4546 | 7 MAINTAINER="paul@slitaz.org" |
paul@4807 | 8 DEPENDS="ncurses taglib mpd curl libmpdclient" |
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/" |
paul@4546 | 12 WGET_URL="http://unkart.ovh.org/ncmpcpp/$TARBALL" |
paul@4546 | 13 |
paul@4546 | 14 # Rules to configure and make the package. |
paul@4546 | 15 compile_rules() |
paul@4546 | 16 { |
paul@4546 | 17 cd $src |
paul@4546 | 18 ./configure \ |
paul@4546 | 19 --prefix=/usr \ |
paul@4546 | 20 --enable-clock \ |
paul@4546 | 21 --with-taglib \ |
paul@4546 | 22 --with-curl \ |
paul@4546 | 23 --mandir=/usr/share/man \ |
paul@4546 | 24 $CONFIGURE_ARGS && |
paul@4546 | 25 make && make DESTDIR=$PWD/_pkg install |
paul@4546 | 26 } |
paul@4546 | 27 |
paul@4546 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4546 | 29 genpkg_rules() |
paul@4546 | 30 { |
paul@4546 | 31 mkdir -p $fs/usr/share |
paul@4546 | 32 cp -a $_pkg/usr/bin $fs/usr |
paul@4546 | 33 cp -a $_pkg/usr/share/doc $fs/usr/share |
paul@4546 | 34 } |
paul@4546 | 35 |
paul@4546 | 36 post_install() |
paul@4546 | 37 { |
paul@4546 | 38 echo -n "Enabling configuration files..." |
paul@4546 | 39 mkdir -p $1/home/tux/.ncmpcpp |
paul@4546 | 40 cp $1/usr/share/doc/ncmpcpp/config /home/tux/.ncmpcpp |
paul@4546 | 41 cp $1/usr/share/doc/ncmpcpp/keys /home/tux/.ncmpcpp |
paul@4546 | 42 sed -i 's|#mpd_music_dir = ""|mpd_music_dir = "/home/tux/music"|' /home/tux/.ncmpcpp/config |
paul@4546 | 43 # Change permissions also |
paul@4546 | 44 chown -R tux:tux /home/tux/.ncmpcpp |
paul@4546 | 45 status |
paul@4546 | 46 } |
paul@4546 | 47 |
paul@4546 | 48 post_remove() |
paul@4546 | 49 { |
paul@4546 | 50 echo -n "Removing configuration files..." |
paul@4546 | 51 rm -rf /home/tux/.ncmpcpp |
paul@4546 | 52 status |
paul@4546 | 53 } |
paul@4546 | 54 |
paul@4546 | 55 |