diff options
-rw-r--r-- | community/nodejs-current/APKBUILD | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/community/nodejs-current/APKBUILD b/community/nodejs-current/APKBUILD index 24a962789e..f3a7fcc16a 100644 --- a/community/nodejs-current/APKBUILD +++ b/community/nodejs-current/APKBUILD @@ -43,13 +43,25 @@ build() { make -C out mksnapshot BUILDTYPE=Release paxmark -m out/Release/mksnapshot make + + # paxmark so JIT works + paxmark -m out/Release/node +} + +# TODO Run provided test suite. +check() { + cd "$builddir"/out/Release + + ./node -e 'console.log("Hello, world!")' + ./node -e "require('assert').equal(process.versions.node, '$pkgver')" } package() { cd "$builddir" make DESTDIR="$pkgdir" install - # paxmark so JIT works + + # It's strange, but it really needs to be paxmarked again... paxmark -m "$pkgdir"/usr/bin/node cp -pr "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share |