aboutsummaryrefslogtreecommitdiffstats
path: root/main/libevent/APKBUILD
blob: 67e0e954a8f500566bb4aeb05a2de63f86559fc8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevent
pkgver=2.0.21
pkgrel=1
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

build() {
	cd "$_builddir"
	./configure \
		--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() {
	default_dev
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

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