# Contributor: Jose-Luis Rivas # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.46.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.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=" 41b5606bd4575e1fd1a3a275d00e0bafdef0f43f251c9a032c49ab03134f50fb361e7f355ac0b34dd35959b3b0d29faf1aa7411002f430e3b0d78935a366b3da libuv-v1.46.0.tar.gz "