wok-stable view mpd/receipt @ rev 10802
glib-networking: Fixed it to use offical source url. Please remove source tarball on tank or this package will not build.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Jun 04 08:51:01 2011 +0000 (2011-06-04) |
parents | 6b5247b899e5 |
children | 6b69e208e751 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.15.16"
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-wavpack \
30 --with-zeroconf=no \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/sbin
40 mkdir -p $fs/etc
41 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin
42 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
43 }
45 post_install()
46 {
47 echo "Processing post-install commands..."
49 # Drop root priviledges and enable pid file
50 echo -n "Enabling mpd.conf..."
51 cd $1/etc
52 sed -i 's/#music_directory/music_directory/; \
53 s/#playlist_directory/playlist_directory/; \
54 s/#db_file/db_file/; \
55 s/#pid_file/pid_file/; \
56 s/#user "nobody"/user "tux"/; \
57 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
58 status
60 # Make mpd directories and files
61 echo -n "Enabling mpd files and directories..."
62 mkdir /home/tux/music
63 mkdir -p /home/tux/.mpd/playlists
64 touch /home/tux/.mpd/mpd.log
65 #touch /home/tux/.mpd/mpd.error
67 # And change permissions
68 chown tux:tux /home/tux/music
69 chown -R tux:tux /home/tux/.mpd
70 status
71 }