# Template file for 'tokyocabinet'
pkgname=tokyocabinet
version=1.4.48
revision=1
build_style=gnu-configure
makedepends="zlib-devel bzip2-devel"
short_desc="Modern implementation of DBM"
maintainer="mobinmob <mobinmob@disroot.org>"
license="LGPL-2.1-only"
homepage="https://fallabs.com/tokyocabinet/"
distfiles="https://fallabs.com/tokyocabinet/tokyocabinet-${version}.tar.gz"
checksum=a003f47c39a91e22d76bc4fe68b9b3de0f38851b160bbb1ca07a4f6441de1f90

post_install() {
	vlicense "$DESTDIR"/usr/share/tokyocabinet/COPYING
	rm -f "$DESTDIR"/usr/share/tokyocabinet/COPYING
	rm -r "$DESTDIR/usr/share/tokyocabinet/doc"
}

tokyocabinet-devel_package() {
	depends="$makedepends tokyocabinet-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove usr/include
		vmove usr/share/man/man3
		vmove "usr/lib/*.so"
	}
}
