aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmpdclient/APKBUILD
blob: 32b44b3a8a7a29b7092a1e8d59ea67a97fc2f71d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
pkgver=2.14
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="GPL-2.0"
depends=""
makedepends="meson"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.musicpd.org/download/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=release \
		. output
	ninja -C output
}

package() {
	cd "$builddir"
	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="50bf27a739ca784d5f182cc90b24fad4dbc35752e455c1ce7c2fcda78342bac5480927af199c7f790feff136dc1fe16e4eb19803ba5760ec508ba65c9737e13a  libmpdclient-2.14.tar.xz"