Skip to content

Commit

Permalink
Add g++ to makedepends
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Feb 27, 2024
1 parent b1f0340 commit cf7f7f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/archlinux/node/build-libnode
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ cd "$SCRIPT_DIR"

URL="https://gitlab.archlinux.org/archlinux/packaging/packages/nodejs/-/raw/main/PKGBUILD"
echo 1>&2 "PKGBUILD URL: $URL"
wget -O"PKGBUILD" "$URL"
#cp "$SCRIPT_DIR/PKGBUILD" .
wget -q -O"PKGBUILD" "$URL"

echo 1>&2 "PKGBUILD SHA256: $(sha256sum PKGBUILD | cut -f1 -d' ')"

cp PKGBUILD PKGBUILD.shared

sed -i "s/pkgname=nodejs/pkgname=nodejs-shared\\nconflicts=(nodejs)/" 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+=('"'"'g++'"'"')/' PKGBUILD.shared

SHA256=$(sha256sum PKGBUILD.shared | cut -f1 -d' ')
echo "PKGBUILD.shared SHA256: $SHA256"
Expand Down

0 comments on commit cf7f7f2

Please sign in to comment.