# $Id: PKGBUILD 50625 2009-08-30 03:02:23Z allan $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=libmpdclient
pkgver=2.3
pkgrel=1
pkgdesc="An asynchronous API library for interfacing MPD in the C, C++ & Objective C languages"
arch=('i686' 'x86_64')
url="http://mpd.wikia.com/wiki/ClientLib:libmpdclient"
license=('GPL2')
depends=('glibc')
options=('!libtool')
source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2")
sha1sums=('d1ccd40f1c7a723ef0a8eb0e19b51699ec9a8f9e')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr
  make
}

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