Package Details: sql-formatter 15.3.1-1

Git Clone URL: https://aur.archlinux.org/sql-formatter.git (read-only, click to copy)
Package Base: sql-formatter
Description: A whitespace formatter for different query languages
Upstream URL: https://github.com/sql-formatter-org/sql-formatter
Licenses: MIT
Conflicts: sql-formatter
Provides: sql-formatter
Submitter: fenuks
Maintainer: fenuks
Last Packager: fenuks
Votes: 0
Popularity: 0.000000
First Submitted: 2023-02-01 15:42 (UTC)
Last Updated: 2024-04-26 12:11 (UTC)

Latest Comments

ibrokemypie commented on 2024-04-19 06:00 (UTC)

Used the below diff to get this install correctly without conflicts with other node packages:

--- PKGBUILD    2024-04-19 15:58:27.524046720 +1000
+++ PKGBUILD.new    2024-04-19 15:45:42.376640573 +1000
@@ -17,8 +17,19 @@
 conflicts=("${pkgname}")

 package() {
-    local _npmdir="${pkgdir}/usr/lib/node_modules/"
-    mkdir -p "${_npmdir}"
-    cd "${_npmdir}"
-    npm install -g --user root --prefix "${pkgdir}"/usr --cache "${srcdir}/npm-cache" ${pkgname}@${pkgver}
+   cd "$srcdir"
+
+   npm install \
+       --cache "$srcdir/npm-cache" \
+       --global \
+       --prefix "$pkgdir/usr" \
+       "$pkgname@$pkgver"
+
+   # Non-deterministic race in npm gives 777 permissions to random directories.
+   # See https://github.com/npm/npm/issues/9359 for details.
+   find "$pkgdir/usr" -type d -exec chmod 755 {} +
+
+   # npm gives ownership of ALL FILES to build user
+   # https://bugs.archlinux.org/task/63396
+   chown -R root:root "$pkgdir"
 }