blob: 8701239edc1663c7803df7376860a9422502a6a2 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libmpdclient
pkgver=2.11
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
"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
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
}
sha512sums="0503db31262acfb871578278d6526e12ee2ffbbe414425ab5ebac61f27da8ad4503d948b4d192421d301bd0a29b9b460f195e82a44608f984697a8aa47b2eb9b libmpdclient-2.11.tar.xz"
|