# Maintainer: Natanael Copa pkgname=libmpdclient pkgver=2.17 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() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ -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="8d3f2064dec97f3b93900a2f9e2b555701800ef0eba4dec65e9871b313513f7a829b27596c4ffc2b8832a7eee875f3d1416a2044f635dddc0a7266364b854ec7 libmpdclient-2.17.tar.xz"