aboutsummaryrefslogblamecommitdiffstats
path: root/community/libmpdclient/APKBUILD
blob: beb58a44902cd76034e901f938afe59e68909fe1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                   
           
        
                                                                                               
                                               
          
                 

                   
                                       

                                                                                       
 
         
                      






                                         
                       


           
                      




                                                         
 
 
                                                                                                                                                                       
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
pkgver=2.16
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="520568f61cee447e48c04075d212c46e9640fd3f82604a5b9f4c6ded94eeb4a841e857e44e9f4edad12d93c1052692e7d32d3dbf505d4c0cde6cc217cff0cae5  libmpdclient-2.16.tar.xz"