blob: 3629db2da39d6622fc9fbe0e5d38d0f5f7a62934 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tevent
pkgver=0.9.36
pkgrel=1
pkgdesc="The tevent library"
url="http://tevent.samba.org/"
arch="all"
license="LGPL-3.0-or-later"
makedepends="libtirpc-dev python2-dev python3-dev talloc-dev"
replaces="samba"
subpackages="$pkgname-dev py2-$pkgname:_py2 py3-$pkgname:_py3"
source="http://samba.org/ftp/tevent/tevent-$pkgver.tar.gz"
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 \
--extra-python=/usr/bin/python3
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
_py2() {
pkgdesc="Python 2 binding for the tevent library"
provides="py-$pkgname=$pkgver-r$pkgrel" # for backward compatibility
replaces="py-$pkgname" # for backward compatibility
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python2* "$subpkgdir"/usr/lib/
}
_py3() {
pkgdesc="Python 3 binding for the tevent library"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
}
sha512sums="bca9db9bcf142ba68b207180d19414dddb89a069a4f040383069c8af0df5bb184ca219293c4a1e7b0bc241b9a1ea3d414f8284278ad3a5f0383b9e432450167b tevent-0.9.36.tar.gz"
|