aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
blob: 936c9159681aa3eb2f499e7e354a65a8921e4688 (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
# Conttributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
pkgver=1.8.0
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="f4229c4360625e973ae933cb92e1faf7  libuv-v1.8.0.tar.gz"
sha256sums="6511f734da4fe082dacf85967606d600b7bce557bb9b2f0d2539193535323125  libuv-v1.8.0.tar.gz"
sha512sums="05bb3c94b8e97f0c73e3613a1edd0c73f697509e67107a573454cb274becd8074abf2a8889064bf1392e10b48f2ec380ccd0b34a98b83793c0202601175003d5  libuv-v1.8.0.tar.gz"