# Contributor: Sebastian Wicki # Maintainer: Natanael Copa pkgname=mpd pkgver=0.15.11 pkgrel=0 pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files" url="http://musicpd.org" pkgusers="mpd" pkggroups="mpd audio" license="GPL2" depends= makedepends="pkgconfig lame-dev glib-dev curl-dev libao-dev libmad-dev flac-dev libogg-dev faad2-dev libid3tag-dev libvorbis-dev alsa-lib-dev libsamplerate-dev" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/project/musicpd/mpd/${pkgver}/mpd-${pkgver}.tar.bz2 mpd.initd mpd.confd " build() { cd "$srcdir"/$pkgname-$pkgver ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make || return 1 } package() { cd "$srcdir"/$pkgname-$pkgver make DESTDIR="$pkgdir" install #provide a config that works by default install -d "$pkgdir"/etc sed -e 's:\#pid_file.*:pid_file\t\t/var/run/mpd/mpd.pid:' \ -e 's:\#user.*:user\t\tmpd:' \ -e 's:\#log_file.*:log_file\t\t/var/log/mpd/mpd.log:' \ doc/mpdconf.example > "$pkgdir"/etc/mpd.conf install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -d -g audio -o mpd -m775 \ "$pkgdir"/var/run/mpd \ "$pkgdir"/var/log/mpd \ "$pkgdir"/var/lib/mpd/playlists \ "$pkgdir"/var/lib/mpd/music } md5sums="a8f8afc641db6f789281fe14fcc8d8a9 mpd-0.15.11.tar.bz2 31d1515232d688d610d1664a0fb2a6a0 mpd.initd dbd301041953a5cf9c2b9de8f23eb6bb mpd.confd"