aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmpdclient/APKBUILD
blob: 57e385af5dd9c9e6b1422c42916a16364007dd20 (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.8
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.bz2
	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="79f6c810c291fa4f382a92c8e25123de  libmpdclient-2.8.tar.bz2
c43417acc0532a9dde5cca2169d7d6c6  fix-includes.patch"
sha256sums="108eea3d91e48cd7d847e7c0978202a8386d5a09d49d07390473e96cca9a92e3  libmpdclient-2.8.tar.bz2
7686e0acf5c281abbac32ed2455f42e1b22b0aab52049dbfe8b70256caf6a21d  fix-includes.patch"
sha512sums="c6584cc09e85e29aec837603c678a34bac8464ce35ef3a69b4e0bc78bf65fb1e738f8c88f7645269415f9f86a961c5f1d121c0696e2b12c3bc48d631e75cd034  libmpdclient-2.8.tar.bz2
15e0fb66ee652a4b249ae6f1342bf022479fdd33b98fb4f299aa9fa07d07e8c122a9f568193a00916a00b24cdb4835a46ac7e8afbde5cd4eb8057523a0630783  fix-includes.patch"