# Contributor: Jose-Luis Rivas # Conttributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.14.1 pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="http://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="1c3db7633dcf1c05fb2340aa3f4fbbcc057b05e75a86996eefe83689290b5e48550af5c0cdada62f9d4644e4c5768dc94ad3e1c35a82e1f7ce630323f89f8d88 libuv-v1.14.1.tar.gz 478d25c8905cd393b9ced0f1b16e70794a7ef20fb9eb212fd74e50beca3f5a33a6a5267616abecf470426ed3d00efec51df468745ff43c0de05c0ad8234f1eb3 disable-setuid-test.patch"