# Contributor: Jose-Luis Rivas # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.28.0 pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="https://libuv.org" arch="all" license="MIT BSD ISC" makedepends_build="automake autoconf libtool" makedepends_host="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="d7f635ab99569e96db9ae97d29a302f5eec1fd75c71b035ec597a6b978a3fc797a37c7406fed81a27d4d706fe21cbfe919d829d6dae67399cd5cddd107ad6949 libuv-v1.28.0.tar.gz ba85b0be3905be6d5ff2bf825f99420d979eb2db9c665d2de1cea8366470de718670f71addb9611e468befe1f1e9fcdcf8886ae1d4784485abf0beae2ccc8ee3 disable-setuid-test.patch"