aboutsummaryrefslogtreecommitdiffstats
path: root/main/libevent/APKBUILD
blob: b4a933d9bbb6223a115ba65e1f28a89ed35bb0b3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevent
pkgver=2.0.21
pkgrel=2
pkgdesc="An event notification library"
url="http://libevent.org/"
arch="all"
license="BSD"
depends=""
depends_dev="python"
makedepends="$depends_dev openssl-dev"
subpackages="$pkgname-dev"
source="https://github.com/downloads/libevent/libevent/libevent-$pkgver-stable.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver-stable

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR=$pkgdir install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
}

dev() {
	replaces="libevent"
	default_dev
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

md5sums="b2405cc9ebf264aa47ff615d9de527a2  libevent-2.0.21-stable.tar.gz"