mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-12 08:06:25 +02:00
nodejs-current: add basic check
This commit is contained in:
parent
7b2ac1850d
commit
b8a78f4ff7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user