54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Template file for 'tevent'
|
|
pkgname=tevent
|
|
version=0.16.1
|
|
revision=1
|
|
build_style=waf3
|
|
build_helper="qemu"
|
|
configure_script="buildtools/bin/waf"
|
|
configure_args="--sysconfdir=/etc --localstatedir=/var
|
|
--disable-rpath --disable-rpath-install --without-gettext
|
|
--builtin-libraries=replace --bundled-libraries=NONE"
|
|
hostmakedepends="pkg-config docbook-xsl libxslt"
|
|
makedepends="python3-devel talloc-devel cmocka-devel"
|
|
short_desc="Event system based on the talloc memory management library"
|
|
maintainer="Yuusha Spacewolf <xyuusha@paranoici.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://tevent.samba.org"
|
|
distfiles="https://download.samba.org/pub/tevent/tevent-${version}.tar.gz"
|
|
checksum=362971e0f32dc1905f6fe4736319c4b8348c22dc85aa6c3f690a28efe548029e
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
|
makedepends+=" libxcrypt-devel"
|
|
fi
|
|
|
|
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
|
|
export PYTHONHASHSEED=1
|
|
|
|
do_check() {
|
|
${configure_script} test
|
|
}
|
|
|
|
post_patch() {
|
|
# Look for properly named python support libraries
|
|
vsed -i third_party/waf/waflib/Tools/python.py \
|
|
-e "s|env.pyext_PATTERN = .*$|env.pyext_PATTERN = '%s.so'|"
|
|
}
|
|
|
|
tevent-python3_package() {
|
|
short_desc+=" - Python3 bindings"
|
|
depends="python3"
|
|
pkg_install() {
|
|
vmove ${py3_lib}
|
|
}
|
|
}
|
|
|
|
tevent-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|