# Maintainer: Natanael Copa pkgname=libuv pkgver=1.4.2 _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="d116fbe695157b799fb8805477e24eff libuv-v1.4.2.tar.gz" sha256sums="1006c4055cb3fb34293bb716be127d396550a68ac0bdfc21a6631c8d7a49ce0b libuv-v1.4.2.tar.gz" sha512sums="cb3155bff90867a12ea0288a7bc9a128a1369d7d450c508096b34deee948e8f59cd97d79b68f374fb34d702e5eeb8dc03009c2fe06687ccb27c861907aaed0a2 libuv-v1.4.2.tar.gz"