aboutsummaryrefslogtreecommitdiffstats
path: root/main/libevent/APKBUILD
blob: c0d1e00e037de3ebfa70d076436ccd1b593ff97c (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevent
pkgver=2.0.20
pkgrel=0
pkgdesc="An event notification library"
url="http://libevent.org/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="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
}

md5sums="94270cdee32c0cd0aa9f4ee6ede27e8e  libevent-2.0.20-stable.tar.gz"