aboutsummaryrefslogtreecommitdiffstats
path: root/community/mpd/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2019-03-03 13:16:26 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2019-04-04 09:55:50 +0200
commit435ead10ab9b31fd7e59f761b8af630ef57ff40b (patch)
treef5d3d891c19cc06e79572aef7f5a540a5cec1e37 /community/mpd/APKBUILD
parent2e62b7ed22984e045c0f6bc445dd7417cc9c8a60 (diff)
downloadaports-435ead10ab9b31fd7e59f761b8af630ef57ff40b.tar.gz
aports-435ead10ab9b31fd7e59f761b8af630ef57ff40b.tar.bz2
aports-435ead10ab9b31fd7e59f761b8af630ef57ff40b.tar.xz
community/mpd: upgrade to 0.21.5
Diffstat (limited to 'community/mpd/APKBUILD')
-rw-r--r--community/mpd/APKBUILD52
1 files changed, 22 insertions, 30 deletions
diff --git a/community/mpd/APKBUILD b/community/mpd/APKBUILD
index df2f08d1ac..fa6e191667 100644
--- a/community/mpd/APKBUILD
+++ b/community/mpd/APKBUILD
@@ -3,7 +3,7 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=mpd
-pkgver=0.20.21
+pkgver=0.21.5
case $pkgver in
*.*.*) _branch=${pkgver%.*};;
*.*) _branch=$pkgver;;
@@ -16,54 +16,47 @@ pkggroups="mpd audio"
arch="all"
license="GPL-2.0"
depends=""
-makedepends="lame-dev glib-dev curl-dev libao-dev libmad-dev flac-dev
+makedepends="py-sphinx 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 ffmpeg-dev autoconf automake
- libtool libmpdclient-dev"
-checkdepends="cppunit-dev"
+ libnfs-dev samba-dev opus-dev ffmpeg-dev meson libmpdclient-dev"
+checkdepends="gtest-dev gtest"
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-dbg"
-source="https://www.musicpd.org/download/mpd/$_branch/mpd-$pkgver.tar.xz
- underlinking.patch
+source="https://www.musicpd.org/download/$pkgname/$_branch/$pkgname-$pkgver.tar.xz
stacksize.patch
mpd.initd
mpd.confd"
builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- default_prepare
- cd "$builddir"
- libtoolize --force && aclocal && autoconf && automake --add-missing
-}
-
build() {
cd "$builddir"
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
+ meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --enable-shout \
- --enable-opus \
- --enable-modplug \
- --enable-nfs \
- --enable-smbclient \
- --enable-ffmpeg \
- --enable-libmpdclient \
- --enable-test
- make
+ --localstatedir=/var \
+ --buildtype=release \
+ -Dshout=enabled \
+ -Dopus=enabled \
+ -Dmodplug=enabled \
+ -Dnfs=enabled \
+ -Dsmbclient=enabled \
+ -Dffmpeg=enabled \
+ -Dlibmpdclient=enabled \
+ -Dtest=true \
+ -Ddocumentation=true \
+ . output
+ ninja -C output
}
check() {
- make -C "$builddir" check
+ ninja -C "$builddir/output" -v test
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" ninja -C output install
# provide a config that works by default
install -d "$pkgdir"/etc
@@ -83,8 +76,7 @@ package() {
"$pkgdir"/var/lib/mpd/music
}
-sha512sums="d44fb326ea6213ecf46721ca81efdfffaec4faa5a66e627185fd5ab7c4f0c5a380f4d04aed5c2909746a37b33987cb61f62dc2d747365da06629fbb78bf7c7d6 mpd-0.20.21.tar.xz
-d6a98c5f60a60ddd5fa94b25864f800a6a6fb6ffe114793293d0ccc71bb5d1cdb847ca39fde4128446b55a38be85634106d5d6f2c77ee450f33631b30140781a underlinking.patch
+sha512sums="b3a938f43cd554e0e761890ca7ea910e21b8f98f54f5bfceb0efcbef4df46db0d110d1bbc24a233021b463e3424d6246c1013f5a6ebdfc85a418008d49ced7a4 mpd-0.21.5.tar.xz
f60f6f3e921d20732c1a4c31a97f28660b43fd649e767d6c39661b6a90145231a79ad3f740ae0d706380b245ad040e98b661a513463c54cea161d1f64fc261e0 stacksize.patch
3725a528a45edf60e6a9ebd75c880aa63d0e71ab40c20dbc538af2d7c83ca657833b6853d9b488d635883fb7871bb76fada129b3bf8acff4bb060f98a5ad8774 mpd.initd
41b2467f5b03f5c4dd7003cd5f56f6cfc1f67af7a9aa2538d70360f839625222bdd0c4b04c33e8cd52eeecfc354da3ca22f5aaab8aee357a5774aaf3503594e7 mpd.confd"