void-packages/srcpkgs/ldb/template
2020-01-02 18:23:12 +01:00

33 lines
1 KiB
Bash

# Template file for 'ldb'
pkgname=ldb
version=1.5.1
revision=1
build_style=gnu-configure
configure_args="--with-modulesdir=/usr/lib/ldb/modules"
hostmakedepends="python pkg-config docbook-xsl libxslt"
makedepends="tdb-devel tevent-devel popt-devel talloc-devel lmdb-devel"
checkdepends="cmocka-devel"
short_desc="An LDAP-like database from samba"
maintainer="Yuusha Spacewolf <xyuusha@paranoici.org>"
license="LGPL-3.0-or-later"
homepage="https://www.samba.org/ldb/"
distfiles="https://www.samba.org/ftp/pub/ldb/ldb-${version}.tar.gz"
checksum=232e54b87c53210a6861424ad411b04dbfa0f2ca4bc463aefea188158e0cc963
nocross="see srcpkgs/tdb (cross-32bit.answers)."
# workaround broken uintptr_t definition on musl
if [ "$XBPS_TARGET_WORDSIZE" = "64" -a "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS+=" -D__WORDSIZE=64"
fi
ldb-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}