# Maintainer: Natanael Copa pkgname=libuv pkgver=1.5.0 _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://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 rm -f "$pkgdir"/usr/lib/*.la } md5sums="a26da181256a824fe9283f5e65e77033 libuv-v1.5.0.tar.gz" sha256sums="9cc067435b0ce3aec0194e4f519939cfa4eb823d14dd38dbec014cd048cb817c libuv-v1.5.0.tar.gz" sha512sums="5048fc5ef2daea79d0eb534630c97e82cacb2daa042254f7652d0ae38e9002838189345abeef116aa5f9ff7eed27e2237fc4e11e306bd932fd720a820890aa7f libuv-v1.5.0.tar.gz"