1 # MPD-Pulse: Installer: Arch
2 # Mantainer: Jan Fader <jan [at] faderweb [dot] de>
5 pkgname=${basename}-pulse
9 pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files; with PulseAudio support"
12 url="http://${fullname}.org"
13 depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl'
14 'sqlite3' 'libsamplerate' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag'
16 provides=("${basename}")
17 conflicts=("${basename}")
18 install="${basename}.install"
19 source=("http://downloads.sourceforge.net/${fullname}/${basename}-${pkgver}.tar.bz2"
21 md5sums=('b00b289a20ecd9accfd4972d6395135c'
22 '84583825d4a191aeb89f5709a3808118')
25 cd ${srcdir}/${basename}-${pkgver}
26 ./configure --prefix=/usr \
31 --enable-pulse || return 1
36 cd ${srcdir}/${basename}-${pkgver}
37 make DESTDIR=${pkgdir} install || return 1
39 # set ours dirs in mpd.conf file
40 sed -i 's|^music_directory.*$|#music_directory "path_to_your_music_collection"|1' doc/mpdconf.example
41 sed -i 's|playlist_directory.*$|playlist_directory "/var/lib/mpd/playlists"|1' doc/mpdconf.example
42 sed -i 's|db_file.*$|db_file "/var/lib/mpd/mpd.db"|1' doc/mpdconf.example
43 sed -i 's|log_file.*$|log_file "/var/log/mpd/mpd.log"|1' doc/mpdconf.example
44 sed -i 's|error_file.*$|error_file "/var/log/mpd/mpd.error"|1' doc/mpdconf.example
45 sed -i 's|#pid_file.*$|pid_file "/var/run/mpd/mpd.pid"|1' doc/mpdconf.example
46 sed -i 's|#state_file.*$|state_file "/var/lib/mpd/mpdstate"|1' doc/mpdconf.example
47 sed -i 's|#user.*$|user "mpd"|1' doc/mpdconf.example
49 install -Dm644 doc/mpdconf.example ${pkgdir}/etc/mpd.conf.example || return 1
51 install -Dm755 ${srcdir}/mpd ${pkgdir}/etc/rc.d/mpd || return 1
52 install -d ${pkgdir}/var/{lib/mpd/playlists,log/mpd} || return 1