# Contributor: Leo # Maintainer: Natanael Copa 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 -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 "