Skip to content

Commit

Permalink
Add make
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Feb 27, 2024
1 parent 5b8e418 commit 0d15bfd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/archlinux/node/build-libnode
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0d15bfd

Please sign in to comment.