summaryrefslogtreecommitdiff
path: root/community/libmpdclient/APKBUILD
blob: 3489ffd97b258ebe59963209790d6f02f2b39e64 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
pkgver=2.20
pkgrel=0
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() {
	abuild-meson \
		-Dtest=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

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

sha512sums="
3271c8eae017402976dbfabc51c7cb8d39912c8a3fd6cd075adc978d490f2eb850d86ccec9f7bccbda48c9d6ca1cda89918ac7c76b21f7f63ca1a276b67e94b6  libmpdclient-2.20.tar.xz
"