aboutsummaryrefslogtreecommitdiffstats
path: root/main/tevent/APKBUILD
blob: 0f68f66e6a7f25a0c7753993308f0b8675ab806a (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tevent
pkgver=0.9.34
pkgrel=0
pkgdesc="The tevent library"
url="http://tevent.samba.org/"
arch="all"
license="LGPL-3.0-or-later"
makedepends="python2-dev talloc-dev"
replaces="samba"
subpackages="$pkgname-dev py-$pkgname:_py"
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
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

_py() {
	pkgdesc="Python binding for the tevent library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

sha512sums="29ff88cedc05d9345749ee241f8ab083fc6f98d3975b2739629a3a75a766db6ec42133eeb6c9297315ee0c68ab512c70b8b927d2df5ea61880c673ef33b44183  tevent-0.9.34.tar.gz"