From 928bc36ace9d8771c50e53365a3892231b727b71 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 29 May 2014 19:52:44 +0200 Subject: [PATCH] New package: libuv-0.10.27 --- common/shlibs | 1 + srcpkgs/libuv-devel | 1 + srcpkgs/libuv/files/libuv.pc | 11 +++++++++ srcpkgs/libuv/template | 44 ++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+) create mode 120000 srcpkgs/libuv-devel create mode 100644 srcpkgs/libuv/files/libuv.pc create mode 100644 srcpkgs/libuv/template diff --git a/common/shlibs b/common/shlibs index 31408d00eb7..dc23908efce 100644 --- a/common/shlibs +++ b/common/shlibs @@ -1630,3 +1630,4 @@ librtlsdr.so.0 librtlsdr-0.5.3_1 libSDL2_mixer-2.0.so.0 SDL2_mixer-2.0.0_1 libnxml.so.0 libnxml-0.18.3_1 libmrss.so.0 libmrss-0.19.2_1 +libuv.so.0.10 libuv-0.10.27_1 diff --git a/srcpkgs/libuv-devel b/srcpkgs/libuv-devel new file mode 120000 index 00000000000..c2b1614cb53 --- /dev/null +++ b/srcpkgs/libuv-devel @@ -0,0 +1 @@ +libuv \ No newline at end of file diff --git a/srcpkgs/libuv/files/libuv.pc b/srcpkgs/libuv/files/libuv.pc new file mode 100644 index 00000000000..bdae19ac569 --- /dev/null +++ b/srcpkgs/libuv/files/libuv.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=/usr +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: libuv +Version: 0.10.27 +Description: multi-platform support library with a focus on asynchronous I/O. + +Libs: -L${libdir} -luv -lrt -lpthread -lnsl -ldl +Cflags: -I${includedir} diff --git a/srcpkgs/libuv/template b/srcpkgs/libuv/template new file mode 100644 index 00000000000..36f28b5e106 --- /dev/null +++ b/srcpkgs/libuv/template @@ -0,0 +1,44 @@ +# Template build file for 'libuv' +pkgname=libuv +version=0.10.27 +revision=1 +short_desc="multi-platform support library with a focus on asynchronous I/O." +maintainer="Enno Boland " +license="BSD/ISC" +homepage="http://libuv.org/" +distfiles="https://github.com/joyent/${pkgname}/archive/v${version}.tar.gz" +checksum=19e52f6abbd6ad8bce865b548d7ab3e1e071b159503a1d0c5664fa4b97fb5c7f + +do_build() { + make \ + CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \ + CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" STRIP="$STRIP" +} +do_install() { + vinstall LICENSE 644 \ + usr/share/licenses/${pkgname} + vinstall AUTHORS 644 \ + usr/share/doc/${pkgname} + vinstall README.md 644 \ + usr/share/doc/${pkgname} + + vinstall include/uv.h 644 usr/include + vinstall include/uv-private/uv-unix.h 644 \ + usr/include/uv-private + vinstall include/uv-private/uv-linux.h 644 \ + usr/include/uv-private + vinstall $FILESDIR/libuv.pc 644 /usr/lib/pkgconfig + + vinstall libuv.a 644 "usr/lib" + vinstall libuv.so 644 "usr/lib" +} + +libuv-devel_package() { + depends="libuv>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + } +}