aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
blob: cfa6177c996e77398874cafd118dddc69b38ddd4 (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
46
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Conttributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
pkgver=1.9.1
pkgrel=0
pkgdesc="Cross-platform asychronous I/O"
url="http://libuv.org"
arch="all"
license="MIT BSD ISC"
depends=""
depends_dev=""
makedepends="automake autoconf libtool linux-headers"
install=""
subpackages="$pkgname-dev"
source="http://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-v$pkgver
prepare() {
	cd "$_builddir"
	sh autogen.sh || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

md5sums="654bf6783ac7fc10435c84ec86720a6e  libuv-v1.9.1.tar.gz"
sha256sums="e83953782c916d7822ef0b94e8115ce5756fab5300cca173f0de5f5b0e0ae928  libuv-v1.9.1.tar.gz"
sha512sums="d243e7b1282d2627cfb6958294d0c29ba51a8ea0bb85a50dafa0d762b8255fe280c6afd310f0898e022e15b2be97c10ac50e2bf140f23d6a49dd1a0a5dd6d546  libuv-v1.9.1.tar.gz"