# Contributor: Jose-Luis Rivas # Conttributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.11.0 pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="http://libuv.org" arch="all" license="MIT BSD ISC" makedepends="automake autoconf libtool linux-headers" subpackages="$pkgname-dev" source="http://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz" builddir="$srcdir/$pkgname-v$pkgver" prepare() { default_prepare || return 1 cd "$builddir" sh autogen.sh || return 1 } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release || return 1 } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } sha512sums="5b56e4c337093c6ddc12f8353b011fba9e57fd84565e279bfc13a7d16d3b6dc01f02fee52a32f38ef630a0f5200fc63f3cc04137af21942422c3dcf535212f02 libuv-v1.11.0.tar.gz"