# Maintainer: Natanael Copa pkgname=tevent pkgver=0.10.1 pkgrel=0 pkgdesc="The tevent library" url="https://tevent.samba.org/" arch="all" license="LGPL-3.0-or-later" makedepends="libtirpc-dev python3-dev talloc-dev" replaces="samba" subpackages="$pkgname-dev py3-$pkgname:_py3" source="https://samba.org/ftp/tevent/tevent-$pkgver.tar.gz fix-public-header.patch" builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-rpath \ --bundled-libraries=NONE \ --without-gettext make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } _py3() { pkgdesc="Python 3 binding for the tevent library" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ } sha512sums="204295672618b8d720743f1d388f9a2d591805c8ef36cdb7e9ae3aa824bc288dab64b336e6a5f5babe6214a993b1ad3d0faa9d8ec2b30a9b927b3ea68bc5fd52 tevent-0.10.1.tar.gz ee4cce8591dfe31288975596d8464b7cc160580715f88e4fd19b5ae7e1a831650b072954731f015f52d76600597faee894f0174b9e92d18dca9629f9d056230c fix-public-header.patch"