wok-6.x view mpd/receipt @ rev 17113

qedit: patch ; Add libqscintilla ; Add juffed
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Sep 02 17:57:40 2014 +0200 (2014-09-02)
parents 098e3319bd98
children 6fab3264ba87
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="http://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 cd $src
38 sed -i 's/<stdbool.h>/&\n#include <stdio.h>/' src/decoder_api.h
39 ./configure \
40 --disable-jack \
41 --disable-ao \
42 --disable-modplug \
43 --disable-mms \
44 --disable-ffmpeg \
45 --disable-wavpack \
46 --disable-systemd-daemon \
47 --with-zeroconf=no \
48 $CONFIGURE_ARGS &&
49 make && make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/sbin $fs/etc
56 cp -a $install/usr/bin/mpd $fs/usr/sbin
57 cp $install/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
58 cp -a $stuff/* $fs
59 }
61 post_install()
62 {
63 echo "Processing post-install commands..."
65 # Drop root priviledges and enable pid file
66 echo -n "Enabling mpd.conf..."
67 cd $root/etc
68 sed -i 's/#music_directory/music_directory/; \
69 s/#playlist_directory/playlist_directory/; \
70 s/#db_file/db_file/; \
71 s/#pid_file/pid_file/; \
72 s/#user "nobody"/user "tux"/; \
73 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
74 status
76 # Make mpd directories and files
77 echo -n "Enabling mpd files and directories..."
78 mkdir $root/etc/skel/music
79 mkdir -p $root/etc/skel/.mpd/playlists
80 touch $root/etc/skel/.mpd/mpd.log
81 #touch $root/etc/skel/.mpd/mpd.error
82 cp -f $root/etc/mpd.conf /etc/skel/.mpd
83 status
84 }