aboutsummaryrefslogtreecommitdiffstats
path: root/main/libuv
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2015-04-17 14:39:19 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-04-17 14:53:26 +0000
commit6ae3dd0d870a35fc28c66614cf0f2af609a943c5 (patch)
tree0b0a40fe37bfca39995879531b0b783604f1213f /main/libuv
parent5dec2dd27596587fcdfd17688b6d150417ca0734 (diff)
downloadaports-6ae3dd0d870a35fc28c66614cf0f2af609a943c5.tar.bz2
aports-6ae3dd0d870a35fc28c66614cf0f2af609a943c5.tar.xz
main/libuv: upgrade to 1.4.2
Diffstat (limited to 'main/libuv')
-rw-r--r--main/libuv/APKBUILD46
1 files changed, 12 insertions, 34 deletions
diff --git a/main/libuv/APKBUILD b/main/libuv/APKBUILD
index a2d24631e1..d7da3abf7e 100644
--- a/main/libuv/APKBUILD
+++ b/main/libuv/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libuv
-pkgver=0.10.29
+pkgver=1.4.2
_sover=${pkgver%.*}
pkgrel=0
pkgdesc="Cross-platform asychronous I/O"
@@ -9,11 +9,11 @@ arch="all"
license="MIT and BSD and ISC"
depends=""
depends_dev=""
-makedepends="$depends_dev"
+makedepends="$depends_dev automake autoconf \
+ libtool linux-headers"
install=""
subpackages="$pkgname-dev"
source="http://libuv.org/dist/v$pkgver/libuv-v$pkgver.tar.gz"
-
_builddir="$srcdir"/libuv-v$pkgver
prepare() {
local i
@@ -27,41 +27,19 @@ prepare() {
build() {
cd "$_builddir"
+ sh autogen.sh
+ ./configure --prefix=/usr
make CFLAGS="$CFLAGS -D__USE_MISC" BUILDTYPE=Release
+ install -Dm644 LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
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
+ make DESTDIR="$pkgdir" install
+ rm -f "$pkgdir"/usr/lib/*.la
}
-md5sums="e9f82bbee67c1c468cd33dc869d306e3 libuv-v0.10.29.tar.gz"
-sha256sums="6b3826a085a89dd4dad7313a87e36807eec14393e18392a591f2f5e32b3d9f0e libuv-v0.10.29.tar.gz"
-sha512sums="baf780ee532fc7483786164090bc23c2339870107e3a2335a3800de747c412c0f6a23fbba594b6bf9ff21ec27c9e9d9c7b4d37836649e2bb30b8c88f8527024a libuv-v0.10.29.tar.gz"
+md5sums="d116fbe695157b799fb8805477e24eff libuv-v1.4.2.tar.gz"
+sha256sums="1006c4055cb3fb34293bb716be127d396550a68ac0bdfc21a6631c8d7a49ce0b libuv-v1.4.2.tar.gz"
+sha512sums="cb3155bff90867a12ea0288a7bc9a128a1369d7d450c508096b34deee948e8f59cd97d79b68f374fb34d702e5eeb8dc03009c2fe06687ccb27c861907aaed0a2 libuv-v1.4.2.tar.gz"