wok-next view mpd/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4e53a39395a
children 0c430fcaf2d9
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mpd"
4 VERSION="0.17.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music Player Daemon (MPD)"
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.musicpd.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
14 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
15 libmad-dev libogg-dev libvorbis-dev flac-dev audiofile-dev faad2-dev \
16 glib-dev lame-dev libwrap-dev curl-dev"
18 compile_rules() {
19 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
21 ./configure \
22 --disable-jack \
23 --disable-ao \
24 --disable-modplug \
25 --disable-mms \
26 --disable-ffmpeg \
27 --disable-wavpack \
28 --disable-systemd-daemon \
29 --with-zeroconf=no \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install
33 }
35 genpkg_rules() {
36 mkdir -p $fs/usr/sbin $fs/etc
37 cp -a $install/usr/bin/mpd $fs/usr/sbin
38 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
39 cp -a $stuff/* $fs
40 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib \
41 audiofile faad2 lame sqlite3 libcurl glib openssl libwrap"
42 }
44 post_install() {
45 newline
46 # Drop root priviledges and enable pid file
47 action 'Enabling mpd.conf...'
48 cd $root/etc
49 sed -i 's/#music_directory/music_directory/; \
50 s/#playlist_directory/playlist_directory/; \
51 s/#db_file/db_file/; \
52 s/#pid_file/pid_file/; \
53 s/#user "nobody"/user "tux"/; \
54 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
55 status
57 # Make mpd directories and files
58 action 'Enabling mpd files and directories...'
59 mkdir $root/etc/skel/music
60 mkdir -p $root/etc/skel/.mpd/playlists
61 touch $root/etc/skel/.mpd/mpd.log
62 #touch $root/etc/skel/.mpd/mpd.error
63 cp -f $root/etc/mpd.conf /etc/skel/.mpd
64 status
65 }