# Maintainer: Natanael Copa pkgname=libuv pkgver=1.7.4 _sover=${pkgver%.*} pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="http://libuv.org" arch="all" license="MIT and BSD and ISC" depends="" depends_dev="" makedepends="$depends_dev automake autoconf \ libtool linux-headers" install="" subpackages="$pkgname-dev" source="http://dist.libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz" _builddir="$srcdir"/libuv-v$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" sh autogen.sh ./configure --prefix=/usr make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } md5sums="f7b37b7209c5b56ba4d12b389595e85d libuv-v1.7.4.tar.gz" sha256sums="5fc06c01c171337290dfb431a4a943a187a583e3bf0099b7586229366ea88ad5 libuv-v1.7.4.tar.gz" sha512sums="2cf62f00c11a5703679e036b1c85dcc6c57a6bece08ea9917414327b01a4e49ad053f069d3e6322237fa36bf93b8b29122761156368db910741d1329909e1d3a libuv-v1.7.4.tar.gz"