blob: 443b186413fd7685a9783b9d0cd6e18e1b3f7da4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Contributor: Sebastian Wicki <gandro@gmx.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mpd
pkgver=0.17.4
pkgrel=0
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="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 libshout-dev libmodplug-dev"
install="$pkgname.pre-install"
subpackages="$pkgname-doc"
source="http://www.musicpd.org/download/mpd/${pkgver%.*}/mpd-$pkgver.tar.xz
mpd.initd
mpd.confd
"
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-shout \
--enable-modplug \
|| return 1
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\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
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="ab408a61f49f215ce77ed0cf1deed6e1 mpd-0.17.4.tar.xz
2ccbb38edc6dff5b5740760837f3005a mpd.initd
dbd301041953a5cf9c2b9de8f23eb6bb mpd.confd"
sha256sums="e94780395cabdcb861162297deef52d7a0baa3b3ad57f4b2089d208f3b62c7ce mpd-0.17.4.tar.xz
5f9d066a044d6cb1a9990a59f63dd4a07e78e5179ad90b22374db09b7c62cafd mpd.initd
32c072f77c23c2cc2dd7c93b65b73015e0587caaf2740856132af32cee623206 mpd.confd"
sha512sums="ee8a31cf1398f09b58ead002ae978cef8588baae338110dfc2073b6022ddd98f2877ba99cb6acd1911fb8f6cb7811377f9e05a3136718f1c68af1f623d0af722 mpd-0.17.4.tar.xz
80ad8c2fa59c1bd52d3db50e46208f64d027fbecd753b6d688a1095627c8a8b84bd337a682a192bde0b2155edc0eafbe59ed47bae3b3c26c4b1c0a8090d77f6d mpd.initd
41b2467f5b03f5c4dd7003cd5f56f6cfc1f67af7a9aa2538d70360f839625222bdd0c4b04c33e8cd52eeecfc354da3ca22f5aaab8aee357a5774aaf3503594e7 mpd.confd"
|