1 # Maintainer: Bram Schoenmakers <me@bramschoenmakers.nl>
6 pkgdesc="A fast, reliable, simple package for creating and reading constant databases"
8 url="http://cr.yp.to/cdb.html"
9 license=(public-domain)
11 source=(http://cr.yp.to/cdb/$pkgname-$pkgver.tar.gz)
12 md5sums=('81fed54d0bde51b147dd6c20cdb92d51')
15 cd $srcdir/$pkgname-$pkgver
20 # A little patch, borrowed from Gentoo Portage
21 sed -e 's/^extern int errno;$/#include <errno.h>/' -i error.h
27 cd $srcdir/$pkgname-$pkgver
29 # don't use make setup, but move the binaries ourselves
30 mkdir -p ${pkgdir}/usr/bin/
31 install -m 755 -t ${pkgdir}/usr/bin/ cdbdump cdbget cdbmake cdbmake-12 cdbmake-sv cdbstats cdbtest