44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'tevent'
|
|
pkgname=tevent
|
|
version=0.11.0
|
|
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 docbook2x"
|
|
makedepends="python3-devel talloc-devel libxslt gettext-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=ee9a86c8e808aac2fe1e924eaa139ff7f0269d0e8e4fafa850ae5c7489bc82ba
|
|
|
|
export PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config"
|
|
|
|
post_patch() {
|
|
# Avoid Python shlib extension noise in libpytallic-util.so
|
|
vsed -e "/env.pyext_PATTERN/s/dct\['SO'\]/'.so'/" \
|
|
-i third_party/waf/waflib/Tools/python.py
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|