From 0d15bfdca314f1dd4eb8fe4f623b36d4f1ef1428 Mon Sep 17 00:00:00 2001 From: Gustav Behm Date: Tue, 27 Feb 2024 19:23:01 +0100 Subject: [PATCH] Add make --- build/archlinux/node/build-libnode | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build/archlinux/node/build-libnode b/build/archlinux/node/build-libnode index 962724f..95cd549 100755 --- a/build/archlinux/node/build-libnode +++ b/build/archlinux/node/build-libnode @@ -15,7 +15,15 @@ cp PKGBUILD PKGBUILD.shared sed -i 's/pkgname=nodejs/pkgname=nodejs-shared\nconflicts=('"'"'nodejs'"'"')/' PKGBUILD.shared sed -i 's,./configure,./configure --shared,' PKGBUILD.shared -sed -i 's/^makedepends=\(.*\)$/makedepends=\1\nmakedepends+=('"'"'gcc'"'"' '"'"'icu'"'"' '"'"'pkgconf'"'"')/' PKGBUILD.shared + +EXTRA_makedepends= +for d in gcc make icu pkgconf; do + if [ -n "$EXTRA_makedepends" ]; then + EXTRA_makedepends="$EXTRA_makedepends " + fi + EXTRA_makedepends="$EXTRA_makedepends'$d'" +done +sed -i 's/^makedepends=\(.*\)$/makedepends=\1\nmakedepends+=('"$EXTRA_makedepends"')/' PKGBUILD.shared SHA256=$(sha256sum PKGBUILD.shared | cut -f1 -d' ') echo "PKGBUILD.shared SHA256: $SHA256"