# Template file for 'cdb'
pkgname=cdb
version=0.75
revision=5
build_style=gnu-makefile
short_desc="Constant database utilities"
maintainer="Lain <lain@waifu.club>"
license="Public Domain"
homepage="http://cr.yp.to/cdb.html"
distfiles="http://cr.yp.to/cdb/cdb-${version}.tar.gz"
checksum="1919577799a50c080a8a05a1cbfa5fa7e7abc823d8d7df2eeb181e624b7952c5"

alternatives="
 cdb:cdbdump:/usr/bin/cdb-dump
 cdb:cdbget:/usr/bin/cdb-get
 cdb:cdbmake:/usr/bin/cdb-make
 cdb:cdbstats:/usr/bin/cdb-stats
"

do_configure() {
	echo /usr >conf-home
}
do_install() {
	for f in dump get make stats test make-12 make-sv; do
		vbin cdb${f} cdb-${f}
	done
}
