aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv/APKBUILD
blob: ee5cb77a1f8908f85167519c53886cd46d6e87d4 (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
47
48
49
50
51
# Contributor: Jose-Luis Rivas <ghostbar@riseup.net>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
pkgver=1.43.0
pkgrel=1
pkgdesc="Cross-platform asychronous I/O"
url="https://libuv.org/"
arch="all"
license="MIT AND ISC"
makedepends_build="automake autoconf libtool"
makedepends_host="linux-headers"
subpackages="$pkgname-static $pkgname-dev $pkgname-dbg"
source="https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz
	recvmmsg-padding.patch"
builddir="$srcdir/$pkgname-v$pkgver"

# secfixes:
#   1.39.0-r0:
#     - CVE-2020-8252

prepare() {
	default_prepare
	sh autogen.sh
}

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

check() {
	make check
}

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

sha512sums="
ba48140ac5733e09462a731fe9194c902b011a1a93a63175949c616367bde56bd1c114e8487c5580bee2d4656b45ab8cdc4fc335f67dd35e793c1a943f69fb34  libuv-v1.43.0.tar.gz
25d8bd89eda953aca9f879d3cad49ad9a02b9ac69fc2a69839f45ca9e0da6f8a2ffd1d7a6c491bd38537dcfa59a800301ca278310c7c90584f6c4a73562ad3ed  recvmmsg-padding.patch
"