diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-14 14:15:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-14 14:15:15 +0000 |
commit | 2881f763fe4e2161de47cb968ea67e5c6b3903cc (patch) | |
tree | b3288b319bd25085c259a0d2e553a8b40b252f46 /main/libuv | |
parent | 750df4e2fe6fd161687dd41fd4a6d58269c77205 (diff) | |
download | aports-2881f763fe4e2161de47cb968ea67e5c6b3903cc.tar.bz2 aports-2881f763fe4e2161de47cb968ea67e5c6b3903cc.tar.xz |
main/libuv: moved from testing
Diffstat (limited to 'main/libuv')
-rw-r--r-- | main/libuv/APKBUILD | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/main/libuv/APKBUILD b/main/libuv/APKBUILD new file mode 100644 index 0000000000..49e4fd6acf --- /dev/null +++ b/main/libuv/APKBUILD @@ -0,0 +1,67 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +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 <<EOF +prefix=/usr +exec_prefix=/usr +libdir=/usr/lib +includedir=/usr/include + +Name: libuv +Description: Development libraries for libuv +Version: @version@ +Libs: -L${libdir} -luv -lrt -ldl +Cflags: +URL: http://nodejs.org/ +EOF +} + +md5sums="329a61fa3c30acf46efef1a9221b2054 libuv-v0.10.25.tar.gz" +sha256sums="145026d1c7a037550f064cb8d3675c2e824f18126c01f3c4494cabfe98275951 libuv-v0.10.25.tar.gz" +sha512sums="1ab8def81950c4edb8dc418f17150f584bcf6cecd208f6daf8a4ca9c5d985708a190eda2adf805106a597d4e9bf1e99fd43e54fdab6c70561384589a69b65a8d libuv-v0.10.25.tar.gz" |