wok-next annotate mpd/receipt @ rev 1484
Update BUILD_DEPENDS for galculator kino mpd partimage
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 04 22:08:41 2008 +0000 (2008-10-04) |
parents | f2131ad83e52 |
children | 52dc4b48ed81 |
rev | line source |
---|---|
paul@1375 | 1 # SliTaz package receipt. |
paul@1375 | 2 |
paul@1375 | 3 PACKAGE="mpd" |
paul@1375 | 4 VERSION="0.13.2" |
paul@1375 | 5 CATEGORY="multimedia" |
paul@1375 | 6 SHORT_DESC="Music Player Daemon (MPD)." |
paul@1375 | 7 MAINTAINER="paul@slitaz.org" |
paul@1387 | 8 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac" |
paul@1387 | 9 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \ |
pascal@1484 | 10 libmad-dev libogg-dev libvorbis-dev flac-dev libsamplerate" |
paul@1375 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@1375 | 12 WEB_SITE="http://www.musicpd.org/" |
paul@1375 | 13 WGET_URL="http://www.musicpd.org/uploads/files/$TARBALL" |
paul@1375 | 14 |
paul@1375 | 15 # Rules to configure and make the package. |
paul@1375 | 16 compile_rules() |
paul@1375 | 17 { |
paul@1375 | 18 cd $src |
paul@1375 | 19 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1484 | 20 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1484 | 21 make && |
paul@1375 | 22 make DESTDIR=$PWD/_pkg install |
paul@1375 | 23 } |
paul@1375 | 24 |
paul@1375 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@1375 | 26 genpkg_rules() |
paul@1375 | 27 { |
paul@1375 | 28 mkdir -p $fs/usr/sbin |
paul@1375 | 29 mkdir -p $fs/etc |
paul@1375 | 30 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin |
paul@1375 | 31 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf |
paul@1375 | 32 } |
paul@1375 | 33 |
paul@1375 | 34 post_install() |
paul@1375 | 35 { |
paul@1375 | 36 echo "Processing post-install commands..." |
paul@1375 | 37 |
paul@1375 | 38 # Drop root priviledges and enable pid file |
paul@1375 | 39 echo -n "Enabling mpd.conf..." |
paul@1375 | 40 cd $1/etc |
paul@1375 | 41 sed -i 's/#pid_file/pid_file/; \ |
paul@1375 | 42 s/#user/user/; s/#bind_to_address/bind_to_address/; \ |
paul@1375 | 43 s/"nobody"/"tux"/; s/"any"/"localhost"/' mpd.conf |
paul@1375 | 44 status |
paul@1375 | 45 |
paul@1375 | 46 # Make mpd directories and files |
paul@1375 | 47 echo -n "Enabling mpd files and directories" |
paul@1375 | 48 mkdir /home/tux/music |
paul@1375 | 49 mkdir -p /home/tux/.mpd/playlists |
paul@1375 | 50 touch /home/tux/.mpd/mpd.log |
paul@1375 | 51 touch /home/tux/.mpd/mpd.error |
paul@1375 | 52 |
paul@1375 | 53 # And change permissions |
paul@1375 | 54 chown tux:tux /home/tux/music |
paul@1375 | 55 chown -R tux:tux /home/tux/.mpd |
paul@1375 | 56 status |
paul@1375 | 57 } |
paul@1375 | 58 |
paul@1375 | 59 |