APKBUILD 2.03 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1
# Contributor: William Pitcock <nenolod@dereferenced.org>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Ariadne Conill's avatar
Ariadne Conill committed
3
pkgname=libev
Natanael Copa's avatar
Natanael Copa committed
4 5
pkgver=4.19
pkgrel=0
Ariadne Conill's avatar
Ariadne Conill committed
6 7 8 9 10 11
pkgdesc="event dispatch library"
url="http://libev.schmorp.de/"
arch="all"
license="BSD GPL"
depends=
depends_dev=
12
makedepends="$depends_dev autoconf automake libtool"
Ariadne Conill's avatar
Ariadne Conill committed
13 14
install=""
subpackages="$pkgname-dev $pkgname-doc"
15
source="http://dist.schmorp.de/${pkgname}/Attic/${pkgname}-${pkgver}.tar.gz
Natanael Copa's avatar
Natanael Copa committed
16
	modernize-configure.ac.patch
Natanael Copa's avatar
Natanael Copa committed
17
	libev-4.11-Add-pkgconfig-support.patch
18
	"
Ariadne Conill's avatar
Ariadne Conill committed
19 20 21 22 23 24 25 26 27 28

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
29
	update_config_sub || return 1
Natanael Copa's avatar
Natanael Copa committed
30
	libtoolize --force && aclocal -I m4 && autoheader&&  autoconf \
31
		&& automake --add-missing
Ariadne Conill's avatar
Ariadne Conill committed
32 33 34 35
}

build() {
	cd "$_builddir"
36 37 38 39 40 41
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
Ariadne Conill's avatar
Ariadne Conill committed
42 43 44 45 46
	make || return 1
}

package() {
	cd "$_builddir"
47
	make -j1 DESTDIR="$pkgdir" install || return 1
48
	rm "$pkgdir"/usr/include/event.h
Ariadne Conill's avatar
Ariadne Conill committed
49 50
}

Natanael Copa's avatar
Natanael Copa committed
51 52 53 54 55 56 57 58 59
md5sums="01d1c672697f649b4f94abd0b70584ff  libev-4.19.tar.gz
f8872b022ef77611c3abd2c58237432b  modernize-configure.ac.patch
acec6b40b5ebea613fb0829f84e8a48b  libev-4.11-Add-pkgconfig-support.patch"
sha256sums="88fc5f89ca96ceca14c16c10e7be3e921dae65e84932d680c2fd6a40173edccb  libev-4.19.tar.gz
3e11ca8e5c7fcbc49d82fbfc3dc9357325be95154ffadf029f02ac79cd4c93d9  modernize-configure.ac.patch
2228eb682631655678e172a647238bf9c00b5ea8e732b45795e45fe5d79e1ffb  libev-4.11-Add-pkgconfig-support.patch"
sha512sums="0d1c8707ba0b665b4570a1dc4125d1fd9b0a25f8cad6552cb1fe8a7ea90920b14c15ad3a32806ddcd7efe68bb397dab973b3ee609dac5015c0d76959d850aaf1  libev-4.19.tar.gz
f8234fd05a7eb55bdc2ce38874a37bdd593e63719a539acb74306fd99504701c50ba77eb9c434185974904443c5e6509ab2832c476ba5804bb50c7adb745dda5  modernize-configure.ac.patch
b5bc1b5ed1e605cd45a01adce70c1a97188c0b46a36333f12eccd4407c95d96f18adff90ee8c5733c1783a36b4adc5ef67d6b470104339a1ac5c4539a2a4599e  libev-4.11-Add-pkgconfig-support.patch"