# Conttributor: Sören Tempel # Maintainer: Natanael Copa pkgname=libuv pkgver=1.9.0 pkgrel=0 pkgdesc="Cross-platform asychronous I/O" url="http://libuv.org" arch="all" license="MIT BSD ISC" depends="" depends_dev="" makedepends="automake autoconf libtool linux-headers" install="" subpackages="$pkgname-dev" source="http://dist.libuv.org/dist/v$pkgver/$pkgname-v$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-v$pkgver prepare() { 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 } md5sums="200d7e496ef1db01442c0382225b11fe libuv-v1.9.0.tar.gz" sha256sums="d595b2725abcce851c76239aab038adc126c58714cfb572b2ebb2d21b3593842 libuv-v1.9.0.tar.gz" sha512sums="458c026b86b36d54d27ece15cd00fd2c26d8634de81702083954226f1bc856e1ac40a6597625488e9926d4440ccf95befb4974ae883a3d41cc8d559e9f8302ed libuv-v1.9.0.tar.gz"