# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Alexander Duscheleit <jinks@archlinux.us>
# Contributor: Joaquim Pedro (osmano807) <osmano807@gmail.com>

pkgname=kyotocabinet
pkgver=1.2.77
pkgrel=1
pkgdesc="a modern implementation of DBM in C++"
arch=('x86_64')
url="http://fallabs.com/kyotocabinet"
license=('LGPL3')
depends=('zlib' 'gcc-libs')
source=("http://fallabs.com/${pkgname}/pkg/${pkgname}-${pkgver}.tar.gz")
sha512sums=('f38794c11faa3f4b64097a2e314307e1a6b75ddc495103647ebe52786a689336754496e7083697417ea90436e7fad681f16440975abec9ae917874aa25153e0f')

build() {
  cd $pkgname-$pkgver

  ./configure --prefix=/usr --disable-opt
  make
}

package() {
  cd $pkgname-$pkgver

  make install DESTDIR="$pkgdir/"
}
