wok-next view mpd/receipt @ rev 21596
updated dos2unix (7.4.0 -> 7.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 14:10:06 2020 +0100 (2020-06-24) |
parents | 0c430fcaf2d9 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mpd"
4 VERSION="0.21.22"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music Player Daemon (MPD)"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.musicpd.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
14 BUILD_DEPENDS="alsa-lib-dev audiofile-dev curl-dev faad2-dev flac-dev
15 glib-dev lame-dev libid3tag-dev libmad-dev libogg-dev
16 libsamplerate-dev libvorbis-dev libwrap-dev zlib-dev"
18 compile_rules()
19 {
20 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
22 ./configure \
23 --disable-jack \
24 --disable-ao \
25 --disable-modplug \
26 --disable-mms \
27 --disable-ffmpeg \
28 --disable-wavpack \
29 --disable-systemd-daemon \
30 --with-zeroconf=no \
31 $CONFIGURE_ARGS &&
32 make &&
33 make install
34 }
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/sbin
39 mkdir -p $fs/etc
41 cp -a $install/usr/bin/mpd $fs/usr/sbin
42 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
43 cp -a $stuff/* $fs
45 DEPENDS="alsa-lib audiofile faad2 flac glib lame libcurl libid3tag
46 libmad libogg libsamplerate libvorbis libwrap openssl sqlite3"
47 }
49 post_install()
50 {
51 newline
52 # Drop root privileges and enable pid file
53 action 'Enabling mpd.conf...'
54 cd $root/etc
55 sed -i 's/#music_directory/music_directory/; \
56 s/#playlist_directory/playlist_directory/; \
57 s/#db_file/db_file/; \
58 s/#pid_file/pid_file/; \
59 s/#user "nobody"/user "tux"/; \
60 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
61 status
63 # Make mpd directories and files
64 action 'Enabling mpd files and directories...'
65 mkdir $root/etc/skel/music
66 mkdir -p $root/etc/skel/.mpd/playlists
67 touch $root/etc/skel/.mpd/mpd.log
68 #touch $root/etc/skel/.mpd/mpd.error
69 cp -f $root/etc/mpd.conf /etc/skel/.mpd
70 status
71 }