# Contributor: Łukasz Jendrysik # Contributor: Sebastian Wicki # Contributor: Sören Tempel # Maintainer: Carlo Landmeter pkgname=mpd pkgver=0.19.14 case $pkgver in *.*.*) _branch=${pkgver%.*};; *.*) _branch=$pkgver;; esac pkgrel=1 pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files" url="http://musicpd.org" pkgusers="mpd" pkggroups="mpd audio" arch="all" license="GPL2" depends="" makedepends="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 libshout-dev libmodplug-dev boost-dev icu-dev libnfs-dev samba-dev opus-dev autoconf automake libtool" install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-dbg" source="http://www.musicpd.org/download/mpd/$_branch/mpd-$pkgver.tar.xz underlinking.patch musl-gcc5-fixes.patch stacksize.patch mpd.initd mpd.confd" _builddir="$srcdir/$pkgname-$pkgver" prepare() { default_prepare || return 1 libtoolize --force && aclocal && autoconf && automake --add-missing \ || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-shout \ --enable-opus \ --enable-modplug \ --enable-nfs \ --enable-smbclient \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 # 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\t"mpd":' \ -e 's:\#log_file.*:log_file\t\t"syslog":' \ doc/mpdconf.example > "$pkgdir"/etc/mpd.conf install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 install -d -g audio -o mpd -m775 \ "$pkgdir"/var/run/mpd \ "$pkgdir"/var/log/mpd \ "$pkgdir"/var/lib/mpd \ "$pkgdir"/var/lib/mpd/playlists \ "$pkgdir"/var/lib/mpd/music || return 1 } md5sums="9f99340ec6b77bea4ba3729e3b76fd7c mpd-0.19.14.tar.xz a84cce5fdb848c7d282e38698432df51 underlinking.patch 76bf696786915e7d84ea4f9483ac8a36 musl-gcc5-fixes.patch b0c5da8706963a5ae910ff604eb87e2b stacksize.patch afe7a40ac52e4619e5d755b3523132a8 mpd.initd dbd301041953a5cf9c2b9de8f23eb6bb mpd.confd" sha256sums="2fd23805132e5002a4d24930001a7c7d3aaf55e3bd0cd71af5385895160e99e7 mpd-0.19.14.tar.xz b3a0499cbd3f759612ad94fce00588d97e5e82af0b2bcc560869eb977067a426 underlinking.patch 21eb5d288208a6fdf26dac37a7e629fb2221b2e1b970bd66e2992ddf70ce2aed musl-gcc5-fixes.patch 7ae663ecc08498e1d822349cf580eb738f43218308ae0b75efe128276f8ab98a stacksize.patch e6eb40494f583f8b22ef5dc9c4f871220ddd483f1e67cb3bf7eae31eba331479 mpd.initd 32c072f77c23c2cc2dd7c93b65b73015e0587caaf2740856132af32cee623206 mpd.confd" sha512sums="378c31033fd846c4a025c3e45ea61fd79378421371e1b4aa2ac3cf9f10d5c47d930bc6b052055f8f2c70fa98c6d471be73e3e6d6ede568057f7279753b017f40 mpd-0.19.14.tar.xz d6a98c5f60a60ddd5fa94b25864f800a6a6fb6ffe114793293d0ccc71bb5d1cdb847ca39fde4128446b55a38be85634106d5d6f2c77ee450f33631b30140781a underlinking.patch 1dcf0bc5446cd448242b0a82cf471ea959bc390056f2270a08b930911844117668d869d047bd5c24b03872c39e033b8b8d2a978fe9ebbe69745ac16cb389e136 musl-gcc5-fixes.patch f425c20e18207a406f84a6a664f02625fca9d42977b1289f4ba8595406b26f6aa73b4f1cb5a1115858cb75fa7844f42d7174adba3f6af1af216c44901a1ccaa0 stacksize.patch 3725a528a45edf60e6a9ebd75c880aa63d0e71ab40c20dbc538af2d7c83ca657833b6853d9b488d635883fb7871bb76fada129b3bf8acff4bb060f98a5ad8774 mpd.initd 41b2467f5b03f5c4dd7003cd5f56f6cfc1f67af7a9aa2538d70360f839625222bdd0c4b04c33e8cd52eeecfc354da3ca22f5aaab8aee357a5774aaf3503594e7 mpd.confd"