wok view mpd/receipt @ rev 9124

hal-cups-utils: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 05 18:36:40 2011 +0100 (2011-03-05)
parents 0e2015438912
children 6b5247b899e5
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.16.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music Player Daemon (MPD)."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib \
9 audiofile faad2 lame sqlite libcurl glib libcrypto"
10 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
11 libmad-dev libogg-dev libvorbis-dev flac-dev libsamplerate \
12 libid3tag audiofile audiofile-dev faad2 faad2-dev pkg-config glib-dev lame-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://www.musicpd.org/"
15 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --disable-jack \
25 --disable-ao \
26 --disable-modplug \
27 --disable-mms \
28 --disable-ffmpeg \
29 --disable-libwrap \
30 --disable-wavpack \
31 --with-zeroconf=no \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/sbin
41 mkdir -p $fs/etc
42 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin
43 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
44 }
46 post_install()
47 {
48 echo "Processing post-install commands..."
50 # Drop root priviledges and enable pid file
51 echo -n "Enabling mpd.conf..."
52 cd $1/etc
53 sed -i 's/#music_directory/music_directory/; \
54 s/#playlist_directory/playlist_directory/; \
55 s/#db_file/db_file/; \
56 s/#pid_file/pid_file/; \
57 s/#user "nobody"/user "tux"/; \
58 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
59 status
61 # Make mpd directories and files
62 echo -n "Enabling mpd files and directories..."
63 mkdir /home/tux/music
64 mkdir -p /home/tux/.mpd/playlists
65 touch /home/tux/.mpd/mpd.log
66 #touch /home/tux/.mpd/mpd.error
68 # And change permissions
69 chown tux:tux /home/tux/music
70 chown -R tux:tux /home/tux/.mpd
71 status
72 }