APKBUILD 1.5 KB
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
3
pkgver=2.9
4
pkgrel=0
5 6
pkgdesc="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages"
url="http://mpd.wikia.com/wiki/Client:libmpdclient"
7
arch="all"
8 9
license="GPL2"
depends=
10
makedepends="doxygen"
11
subpackages="$pkgname-dev $pkgname-doc"
12
source="http://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$pkgver.tar.xz
13 14
	fix-includes.patch
	"
15

16 17 18 19 20
_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
21 22 23 24 25
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
26 27
}

28
build() { 
29
	cd "$_builddir"
30 31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
35 36 37 38
	make || return 1
}

package() {
39
	cd "$_builddir"
40
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
41
	rm "$pkgdir"/usr/lib/*.la || return 1
42
}
43
md5sums="4b101a36e5c0cf967dc063391260ddbf  libmpdclient-2.9.tar.xz
44
c43417acc0532a9dde5cca2169d7d6c6  fix-includes.patch"
45
sha256sums="7cc97ba560e91addafe5975f7e7da04b95d6710750e47b3367fa0d8c3b7699ca  libmpdclient-2.9.tar.xz
46
7686e0acf5c281abbac32ed2455f42e1b22b0aab52049dbfe8b70256caf6a21d  fix-includes.patch"
47
sha512sums="7e6af51e31a3319e6681dfe5199fda1b2c1482f6aa6854af7c7f02c999fbbeae4f369c9b157abf95402c7f022d155109454b243549185ba791df5b2457baaba4  libmpdclient-2.9.tar.xz
48
15e0fb66ee652a4b249ae6f1342bf022479fdd33b98fb4f299aa9fa07d07e8c122a9f568193a00916a00b24cdb4835a46ac7e8afbde5cd4eb8057523a0630783  fix-includes.patch"