index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-12-04 16:46:04 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-12-04 16:46:04 +0100 |
commit | 84ccd4e73b439cef259b79f7009c742bada6bfeb (patch) | |
tree | 55c2986a803e0918ec91d38da44c5ea72a9de50b /extra/nodejs/PKGBUILD | |
parent | ce1c1616c5938acb3f6350682aa57365c0062707 (diff) |
-rw-r--r-- | extra/nodejs/PKGBUILD | 17 |
diff --git a/extra/nodejs/PKGBUILD b/extra/nodejs/PKGBUILD new file mode 100644 index 00000000..ca9008ec --- /dev/null +++ b/extra/nodejs/PKGBUILD @@ -0,0 +1,17 @@ +# add -latomic where needed (i486) +if [ "$CARCH" = 'i486' ]; then + source+=('node-17.1.0-atomic.patch') + sha512sums+=('0fd62af37c4c0e2cd81fc613f4610741dbe6e883b5d15aa1fd64bcdbca8ec8d95aa98a37525425e5f80e8ca1305e222235f3ca6069779e3fcc1940b20207d50a') + eval "$( + declare -f prepare | \ + sed ' + $i patch -Np1 -i "../node-17.1.0-atomic.patch" + ' + )" + eval "$( + declare -f build | \ + sed ' + 3 i LDFLAGS+=" -latomic" + ' + )" +fi |