# Contributor: Jose-Luis Rivas # Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.31.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-static $pkgname-dev $pkgname-dbg" source="https://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz" 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" # 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() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums="7792327227146cb4548cb7dc0c51908bbea97dec97605dbfd18d681e5b54e7d97841abad71c1b1b4a8c7f06274293622c93436060d6eb185af66fdb30c44a4c8 libuv-v1.31.0.tar.gz"