aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmpdclient/APKBUILD
blob: 2d417547c8f2958ce4baa22aee27b0552a39ee60 (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
# 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"

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

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

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"
sha256sums="108eea3d91e48cd7d847e7c0978202a8386d5a09d49d07390473e96cca9a92e3  libmpdclient-2.8.tar.bz2"
sha512sums="c6584cc09e85e29aec837603c678a34bac8464ce35ef3a69b4e0bc78bf65fb1e738f8c88f7645269415f9f86a961c5f1d121c0696e2b12c3bc48d631e75cd034  libmpdclient-2.8.tar.bz2"