36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'tevent'
|
|
pkgname=tevent
|
|
version=0.10.2
|
|
revision=1
|
|
build_style=configure
|
|
hostmakedepends="python3 pkg-config which"
|
|
makedepends="talloc-devel libtirpc-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://ftp.samba.org/pub/tevent/tevent-${version}.tar.gz"
|
|
checksum=f8427822e5b2878fb8b28d6f50d96848734f3f3130612fb574fdd2d2148a6696
|
|
|
|
do_configure() {
|
|
case "XBPS_TARGET_WORDSIZE" in
|
|
32) vsed -e '/NSIG/s,64,32,' -e '/_NSIG/s,64,32,' -i "$FILESDIR"/cross-32bit.answers
|
|
esac
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
cp "$FILESDIR"/cross-32bit.answers .
|
|
_args="${configure_args} --cross-compile --hostcc=${CC} --cross-answers=cross-32bit.answers"
|
|
fi
|
|
|
|
./configure --prefix=/usr --disable-python ${_args}
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|