core/tevent/PKGBUILD

34 lines
863 B
Bash
Raw Normal View History

# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/tevent/
pkgname=tevent
2018-02-28 08:21:55 +08:00
pkgver=0.9.36
pkgrel=1
pkgdesc="An event system based on the talloc memory management library"
arch=('x86_64')
url="https://tevent.samba.org/"
source=("http://samba.org/ftp/tevent/${pkgname}-${pkgver}.tar.gz")
license=('GPL3')
depends=('talloc')
makedepends=('python2')
optdepends=('python2: for python bindings')
2018-02-28 08:21:55 +08:00
md5sums=('87d67bca75b231814435c47bec0aff8a')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# change to use python2
sed -i -e "s|/usr/bin/env python$|/usr/bin/env python2|" buildtools/bin/waf
export PYTHON=/usr/bin/python2
2015-09-21 06:36:45 +08:00
./configure --prefix=/usr \
--bundled-libraries=NONE \
--builtin-libraries=replace
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
2015-09-21 06:36:45 +08:00
make
make DESTDIR=${pkgdir}/ install
}