aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
blob: 13874af37d1f72e47c291fbe932cd2836cb59381 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
pkgver=1.6.1
_sover=${pkgver%.*}
pkgrel=0
pkgdesc="Cross-platform asychronous I/O"
url="http://libuv.org"
arch="all"
license="MIT and BSD and ISC"
depends=""
depends_dev=""
makedepends="$depends_dev automake autoconf \
	libtool linux-headers"
install=""
subpackages="$pkgname-dev"
source="http://libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz"
_builddir="$srcdir"/libuv-v$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
}

build() {
	cd "$_builddir"
	sh autogen.sh
	./configure --prefix=/usr
	make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release
	install -Dm644 LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="51cfa3d8adc05852982e3c742ec3c039  libuv-v1.6.1.tar.gz"
sha256sums="1a0b8030bc45a2c7b7cf44a89837bb43cf9e4484d8eb94652877f6dfdffc2a5f  libuv-v1.6.1.tar.gz"
sha512sums="a1da4a3d4ecef682dd6d91ebc4770313a8e3aeabb632dbcaae9f131f3a44927e5a42d2c9a569481976340a275c892867c6bf0da907c5fe8a66489f53bf1acca4  libuv-v1.6.1.tar.gz"