From 2881f763fe4e2161de47cb968ea67e5c6b3903cc Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 14 Mar 2014 14:15:15 +0000 Subject: main/libuv: moved from testing --- main/libuv/APKBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 main/libuv/APKBUILD (limited to 'main/libuv') diff --git a/main/libuv/APKBUILD b/main/libuv/APKBUILD new file mode 100644 index 000000000..49e4fd6ac --- /dev/null +++ b/main/libuv/APKBUILD @@ -0,0 +1,67 @@ +# Maintainer: Natanael Copa +pkgname=libuv +pkgver=0.10.25 +_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" +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" + make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release +} + +package() { + cd "$_builddir" + #manually install + install -d "$pkgdir"/usr/lib + cp libuv.so "$pkgdir"/usr/lib/libuv.so.$_sover || return 1 + ln -s libuv.so.$_sover "$pkgdir"/usr/lib/libuv.so.${_sover%.*} + ln -s libuv.so.$_sover "$pkgdir"/usr/lib/libuv.so + + install -d "$pkgdir"/usr/include/uv-private + cp include/uv.h "$pkgdir"/usr/include/ || return 1 + cp include/uv-private/ngx-queue.h \ + include/uv-private/tree.h \ + include/uv-private/uv-linux.h \ + include/uv-private/uv-unix.h \ + "$pkgdir"/usr/include/uv-private/ || return 1 + + install -d "$pkgdir"/usr/lib/pkgconfig + cat > "$pkgdir"/usr/lib/pkgconfig/libuv.pc <