# Contributor: Jose-Luis Rivas # Conttributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.23.2 pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="https://libuv.org" arch="all" license="MIT BSD ISC" makedepends="automake autoconf libtool linux-headers" subpackages="$pkgname-dev $pkgname-dbg" source="https://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz disable-setuid-test.patch " builddir="$srcdir/$pkgname-v$pkgver" prepare() { default_prepare cd "$builddir" sh autogen.sh } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums="8dd9053adad115ae6dd012bf1059aab87cea2adcd8d2f8061607929bf5b0c83b1898f5945325b0f3ace7cdd70b7cdc03f60d4b2f85495c34ca94b9dcf76b42fe libuv-v1.23.2.tar.gz 081b98efa33264d326d998f32600635efd5723de1d9836b99039c60168580c7f56a7ea9fdd138f41bb1aede11da70079cce4aa69ea5b954b7f9e4dcad53ba16a disable-setuid-test.patch"