# Contributor: Jose-Luis Rivas # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.34.2 pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="https://libuv.org" arch="all" license="MIT AND ISC" makedepends_build="automake autoconf libtool" makedepends_host="linux-headers" subpackages="$pkgname-static $pkgname-dev $pkgname-dbg" source="https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz disable-test-failing-on-builders.patch " builddir="$srcdir/$pkgname-v$pkgver" prepare() { default_prepare sh autogen.sh } build() { ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release } check() { # see https://github.com/libuv/libuv/issues/2307 case $CARCH in x86*) if test $DRONE; then sed -i "s/TEST_.*(ipc_closed_handle)//g" test/test-list.h fi ;; esac make check } package() { make DESTDIR="$pkgdir" install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums="1b526af6e68441999f62d00edae55141330f9a16f80eb1be995e935bd951e00daf50e75461c1d28cfe2c4a4918482b23ceea702af61010b73752a63bab89e286 libuv-v1.34.2.tar.gz 0d155259cfaa78fd229a015fd7181b9a76bf4618e36e6e9d4697323cddcde42f29598f161f6831489ec31adc5cf2614cb670021bf6f5ede7202bcbad7f675fbb disable-test-failing-on-builders.patch"