diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-19 18:36:36 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-09-19 18:36:36 +0200 |
commit | 885dbdae4c8b0cd00f6b2546b0785b86acd9af28 (patch) | |
tree | 7d70ed7433b4a15d226ae8616078fe1ceaaaeb75 /main/nodejs/APKBUILD | |
parent | 57b20a46a08500d9080fdde2a1cefd8a4241ce43 (diff) | |
download | aports-885dbdae4c8b0cd00f6b2546b0785b86acd9af28.tar.bz2 aports-885dbdae4c8b0cd00f6b2546b0785b86acd9af28.tar.xz |
main/nodejs: improve abuild, fix code-style
Diffstat (limited to 'main/nodejs/APKBUILD')
-rw-r--r-- | main/nodejs/APKBUILD | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/main/nodejs/APKBUILD b/main/nodejs/APKBUILD index 7641029f50..16caa693ba 100644 --- a/main/nodejs/APKBUILD +++ b/main/nodejs/APKBUILD @@ -2,35 +2,27 @@ pkgname=nodejs pkgver=6.6.0 pkgrel=0 -pkgdesc='Evented I/O for V8 javascript' -url='http://nodejs.org/' -arch='all' -license='MIT' +pkgdesc="Evented I/O for V8 javascript" +url="http://nodejs.org/" +arch="all" +license="MIT" # gold is needed for mksnapshot -makedepends="$depends_dev python openssl-dev zlib-dev libuv-dev - linux-headers paxmark binutils-gold" +makedepends="python openssl-dev zlib-dev libuv-dev linux-headers paxmark + binutils-gold" subpackages="$pkgname-dev $pkgname-doc" replaces="nodejs-lts" source="https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz" -_builddir="$srcdir"/node-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 -} +builddir="$srcdir/node-v$pkgver" build() { - cd "$_builddir" + cd "$builddir" + ./configure --prefix=/usr \ --shared-zlib \ --shared-libuv \ --shared-openssl \ || return 1 + # we need run mksnapshot at build time so paxmark it early make -C out mksnapshot BUILDTYPE=Release \ && paxmark -m out/Release/mksnapshot \ @@ -38,17 +30,18 @@ build() { } package() { - local d - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 # paxmark so JIT works paxmark -m "$pkgdir"/usr/bin/node || return 1 cp -pr "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share || return 1 - for d in doc html man; do + local d; for d in doc html man; do rm -r "$pkgdir"/usr/lib/node_modules/npm/$d || return 1 done } + md5sums="91d9a60ffdfec6287d220a25b99b8e31 node-v6.6.0.tar.gz" sha256sums="11b957de855a392ceaa8b300ec66236d6f9c6baa184837d00bdaba2da4aefe91 node-v6.6.0.tar.gz" sha512sums="77c98d120e80265e7cc93429c5df7834933f08fe43307132e3d9fb9d5f9a005c3d56cff9bdd1ce6ffb04ef9a5b0412557c99ac3de75e20e0cc40a78eab9dfebe node-v6.6.0.tar.gz" |