summaryrefslogtreecommitdiff
path: root/extra/libmpdclient/PKGBUILD
blob: be0e68d4000a0310e6998b949a49d9dd7d9bbbed (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
# $Id: PKGBUILD 153242 2012-03-12 13:45:57Z bisson $
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=libmpdclient
pkgver=2.7
pkgrel=1.1
pkgdesc='Asynchronous API library for interfacing MPD in the C, C++ & Objective C languages'
url='http://mpd.wikia.com/wiki/ClientLib:libmpdclient'
license=('custom:BSD')
arch=('i686' 'x86_64' 'mips64el')
options=('!libtool')
source=("http://downloads.sourceforge.net/project/musicpd/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha1sums=('f97e35525851eb192d3799f0dabe32915c56b96b')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr --disable-static
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install

	cd "${pkgdir}"
	install -d usr/share/licenses/libmpdclient
	ln -s ../../doc/libmpdclient/COPYING usr/share/licenses/libmpdclient/COPYING
}