summaryrefslogtreecommitdiffstats
path: root/main/libmpdclient/APKBUILD
blob: 8f0926ca8e909147a82a84d310eb5c109d62eea6 (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
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
pkgver=2.9
pkgrel=0
pkgdesc="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages"
url="http://mpd.wikia.com/wiki/Client:libmpdclient"
arch="all"
license="GPL2"
depends=
makedepends="doxygen"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.musicpd.org/download/libmpdclient/${pkgver%.*}/libmpdclient-$pkgver.tar.xz
	fix-includes.patch
	"

_builddir="$srcdir/$pkgname-$pkgver"

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

build() { 
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}
md5sums="4b101a36e5c0cf967dc063391260ddbf  libmpdclient-2.9.tar.xz
c43417acc0532a9dde5cca2169d7d6c6  fix-includes.patch"
sha256sums="7cc97ba560e91addafe5975f7e7da04b95d6710750e47b3367fa0d8c3b7699ca  libmpdclient-2.9.tar.xz
7686e0acf5c281abbac32ed2455f42e1b22b0aab52049dbfe8b70256caf6a21d  fix-includes.patch"
sha512sums="7e6af51e31a3319e6681dfe5199fda1b2c1482f6aa6854af7c7f02c999fbbeae4f369c9b157abf95402c7f022d155109454b243549185ba791df5b2457baaba4  libmpdclient-2.9.tar.xz
15e0fb66ee652a4b249ae6f1342bf022479fdd33b98fb4f299aa9fa07d07e8c122a9f568193a00916a00b24cdb4835a46ac7e8afbde5cd4eb8057523a0630783  fix-includes.patch"