# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=lmdbxx
pkgver=1.0.0
pkgrel=0
pkgdesc="C++17 wrapper for the LMDB database library"
url="https://github.com/hoytech/lmdbxx"
arch="noarch"
license="Unlicense"
makedepends="doxygen"
subpackages="$pkgname-doc"
source="https://github.com/hoytech/lmdbxx/archive/$pkgver/lmdbxx-$pkgver.tar.gz"
options="!check" # Requires itself to be installed

build() {
	make doxygen
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
	install -dm755 "$pkgdir"/usr/share/doc/lmdbxx
	mv .doxygen/html "$pkgdir"/usr/share/doc/lmdbxx/
}

sha512sums="54f6c4863273b4de8aed6bc19f353c7a66d8ae633198e9784c55cea8e54460e4030ebe45e91a7c820aade084933f21cd4193ef8c04bb2aef11bf252281404171  lmdbxx-1.0.0.tar.gz"
