# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=libuv
pkgver=1.48.0
pkgrel=2
pkgdesc="Multi-platform support library with a focus on asynchronous I/O"
arch=('armv7h' 'aarch64')
url="https://github.com/libuv/libuv"
license=('custom')
depends=('glibc')
makedepends=('git')
#source=(https://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz{,.sign})
source=("git+https://github.com/libuv/libuv.git?signed#tag=v${pkgver}")
sha512sums=('016401251c3490678593e92977005f6f4da16935f84fae0ed535d06fb19893b90ee59b57136d94f7c5893feed21c03000a5269218b209186f3a87cf8c34c5b9c')
prepare() {
cd $pkgname
# Disable tests that fail on build.a.o (but pass locally)
sed -e '/udp_multicast_join/d' \
-e '/tcp_connect6_link_local/d' \
-i test/test-list.h
}
build() {
cd $pkgname
./autogen.sh
./configure --prefix=/usr
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
install -Dm644 AUTHORS \
"$pkgdir"/usr/share/doc/$pkgname/AUTHORS
install -Dm644 README.md \
"$pkgdir"/usr/share/doc/$pkgname/README.md
install -Dm644 ChangeLog \
"$pkgdir"/usr/share/doc/$pkgname/ChangeLog
}
sha512sums=('016401251c3490678593e92977005f6f4da16935f84fae0ed535d06fb19893b90ee59b57136d94f7c5893feed21c03000a5269218b209186f3a87cf8c34c5b9c')