aports/main/libuv/APKBUILD

52 lines
1.1 KiB
Text

# 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.50.0
pkgrel=0
pkgdesc="Cross-platform asychronous I/O"
url="https://libuv.org/"
arch="all"
license="MIT"
makedepends_build="automake autoconf libtool"
makedepends_host="linux-headers"
subpackages="$pkgname-dbg $pkgname-static $pkgname-dev"
source="https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
# secfixes:
# 1.48.0-r0:
# - CVE-2024-24806
# 1.39.0-r0:
# - CVE-2020-8252
prepare() {
default_prepare
sh autogen.sh
}
build() {
CFLAGS="$CFLAGS -O2" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="
b153d019c630831819913ccd0615c22737df49125da533f86db27f24a519937ed64113ceb6445d731d133e2d97b43b6949877e6078c4459d50ea90d2af4a9da9 libuv-v1.50.0.tar.gz
"