aboutsummaryrefslogtreecommitdiffstats
path: root/main/libev/APKBUILD
blob: 03ce300c5ebc939bd16fe7d852e030e0e8b08af0 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libev
pkgver=4.25
pkgrel=0
pkgdesc="event dispatch library"
url="http://libev.schmorp.de/"
arch="all"
options="!check"  # No test suite.
license="BSD GPL"
makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://dist.schmorp.de/${pkgname}/Attic/${pkgname}-${pkgver}.tar.gz
	libev-4.11-Add-pkgconfig-support.patch
	"

builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	default_prepare
	libtoolize --force && aclocal -I m4 && autoheader&&  autoconf \
		&& automake --add-missing
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

package() {
	cd "$builddir"
	make -j1 DESTDIR="$pkgdir" install
	rm "$pkgdir"/usr/include/event.h
}

sha512sums="83455d4dcb626a28d8477aaea27cdee6bc88b273fae926a57eed9f6a59d4b0ea2eef0f41ad09ff711aea2956ed83a591aa53cfe8aa242f7d0a4da19180d764c4  libev-4.25.tar.gz
b5bc1b5ed1e605cd45a01adce70c1a97188c0b46a36333f12eccd4407c95d96f18adff90ee8c5733c1783a36b4adc5ef67d6b470104339a1ac5c4539a2a4599e  libev-4.11-Add-pkgconfig-support.patch"