# Maintainer: Sven Klomp <mail@klomp.eu>
# Contributor: Mattheus Happe <mhappe@gmail.com>

pkgname=libconcord
_pkgsrcname=concordance
pkgver=0.23
pkgrel=1
pkgdesc="Concordance's core functionality contained in a shared library" 
url="http://www.phildev.net/harmony/index.shtml" 
license=("GPL3")
arch=(i686 x86_64)
depends=('libusb') 
optdepends=('udev: use libconcord as non-root user')
source=("http://downloads.sourceforge.net/project/${_pkgsrcname}/${_pkgsrcname}/${pkgver}/${_pkgsrcname}-${pkgver}.tar.bz2")
md5sums=('d7400d5b351b195b63adfafae68be3d8')


build() { 
  cd ${srcdir}/${_pkgsrcname}-${pkgver}/libconcord
  ./configure --prefix=/usr 
  make || return 1
  make udev || return 1
}

package() {
  cd ${srcdir}/${_pkgsrcname}-${pkgver}/libconcord
  make prefix=${pkgdir}/usr install || return 1
  make prefix=${pkgdir}/ install_udev || return 1
}