aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
blob: 42e632492e0bbe86d6725239872c230f9a02ae84 (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
# 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.10.2
pkgrel=0
pkgdesc="Cross-platform asychronous I/O"
url="http://libuv.org"
arch="all"
license="MIT BSD ISC"
makedepends="automake autoconf libtool linux-headers"
subpackages="$pkgname-dev"
source="http://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

prepare() {
	default_prepare || return 1

	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="fad96b56f517c1ad3f274a19a10c53b2  libuv-v1.10.2.tar.gz"
sha256sums="4ceb0fe9c4efc24354c05883464d77269d41812d9ab1b7f260db8babe1826533  libuv-v1.10.2.tar.gz"
sha512sums="fd1f77109d97101facd9ea57416fd9a5dce05f954e99a795253e6a4204b8c32b446c781c90949f77cb109aa5ef7d2bb7c44f2b75684e4f04793e3a0360c96035  libuv-v1.10.2.tar.gz"