aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmpdclient/APKBUILD
blob: 0a291086e1f44479c4c0165ada7e784d6b2cce58 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
pkgver=2.18
pkgrel=1
pkgdesc="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages"
url="https://www.musicpd.org/libs/libmpdclient"
arch="all"
license="BSD-3-Clause"
makedepends="meson check-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		-Dtest=true \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install

	mkdir -p "$pkgdir"/usr/share/licenses/$pkgname/
	mv "$pkgdir"/usr/share/doc/libmpdclient/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/
}

sha512sums="76c822c783be24391a8f7f4b31f1f8eca785a46be8f1f91041a896107feea68e74c1b4105e9d4d8c0ffbb702481df7dd7cf7fa1459897bdb2534829c13ca6f8b  libmpdclient-2.18.tar.xz"