aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
blob: 0882371269794eb81f700cbc39f5811db5c489a8 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
pkgver=1.7.3
_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://dist.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
}

md5sums="2c52d96a6eec124005e569e87353256e  libuv-v1.7.3.tar.gz"
sha256sums="76b7c712d2945c60bd69a7fdd5f027ffd52985a49c014d7b54a4c91d6cf02ec5  libuv-v1.7.3.tar.gz"
sha512sums="c702ff73154ea16de6e1f74f7573bc0dbc22d86b3b6855491397ea6f52bdc38eb50abca3e085aa8bb9a4e280da94a2e9c3bd63decdc6d1843ca102b80a1cb6a9  libuv-v1.7.3.tar.gz"