wok view mpd/receipt @ rev 20779
updated cellwriter (1.3.5 -> 1.3.6)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 14 13:52:33 2019 +0100 (2019-02-14) |
parents | 6fab3264ba87 |
children | 1ccc78d4d3b3 |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.musicpd.org/"
11 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib \
15 audiofile faad2 lame sqlite libcurl glib libcrypto libwrap"
16 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
17 libmad-dev libogg-dev libvorbis-dev flac-dev audiofile-dev faad2-dev \
18 glib-dev lame-dev libwrap-dev curl-dev"
20 # Handle SliTaz arch
21 case "$SLITAZ_ARCH" in
22 arm)
23 DEPENDS="alsa-lib zlib glib lame libmad libsamplerate libwrap \
24 libogg libvorbis" ;;
25 esac
27 # Handle cross comilation
28 case "$ARCH" in
29 arm)
30 BUILD_DEPENDS="alsa-lib-dev zlib-dev glib-dev libgio-dev lame-dev \
31 libmad-dev libsamplerate-dev libwrap-dev libogg-dev libvorbis-dev" ;;
32 esac
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
38 ./configure \
39 --disable-jack \
40 --disable-ao \
41 --disable-modplug \
42 --disable-mms \
43 --disable-ffmpeg \
44 --disable-wavpack \
45 --disable-systemd-daemon \
46 --with-zeroconf=no \
47 $CONFIGURE_ARGS &&
48 make && make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/sbin $fs/etc
55 cp -a $install/usr/bin/mpd $fs/usr/sbin
56 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
57 cp -a $stuff/* $fs
58 }
60 post_install()
61 {
62 newline
63 # Drop root priviledges and enable pid file
64 action 'Enabling mpd.conf...'
65 cd $root/etc
66 sed -i 's/#music_directory/music_directory/; \
67 s/#playlist_directory/playlist_directory/; \
68 s/#db_file/db_file/; \
69 s/#pid_file/pid_file/; \
70 s/#user "nobody"/user "tux"/; \
71 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
72 status
74 # Make mpd directories and files
75 action 'Enabling mpd files and directories...'
76 mkdir $root/etc/skel/music
77 mkdir -p $root/etc/skel/.mpd/playlists
78 touch $root/etc/skel/.mpd/mpd.log
79 #touch $root/etc/skel/.mpd/mpd.error
80 cp -f $root/etc/mpd.conf /etc/skel/.mpd
81 status
82 }