[arch-commits] Commit in modclean/repos/community-any (PKGBUILD PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Sat Feb 6 17:06:15 UTC 2021
Date: Saturday, February 6, 2021 @ 17:06:14
Author: anthraxx
Revision: 846924
archrelease: copy trunk to community-any
Added:
modclean/repos/community-any/PKGBUILD
(from rev 846923, modclean/trunk/PKGBUILD)
Deleted:
modclean/repos/community-any/PKGBUILD
----------+
PKGBUILD | 54 +++++++++++++++++++++++++++++-------------------------
1 file changed, 29 insertions(+), 25 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-06 17:06:11 UTC (rev 846923)
+++ PKGBUILD 2021-02-06 17:06:14 UTC (rev 846924)
@@ -1,25 +0,0 @@
-# Maintainer: Nicola Squartini <tensor5 at gmail.com>
-
-pkgname=modclean
-pkgver=3.0.0beta.1
-pkgrel=2
-pkgdesc='Remove unwanted files and directories from your node_modules folder'
-arch=('any')
-url='https://github.com/ModClean/modclean'
-license=('MIT')
-depends=('nodejs')
-makedepends=('npm')
-options=(!emptydirs)
-
-package() {
- npm install -g --prefix="${pkgdir}/usr" ${pkgname}@3.0.0-beta.1
-
- cd "${pkgdir}/usr/lib/node_modules/${pkgname}"
- install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
- ln -s \
- $(realpath --relative-to="${pkgdir}/usr/share/licenses/${pkgname}" LICENSE) \
- "${pkgdir}/usr/share/licenses/${pkgname}"
- sed -e "s|${srcdir}|/|" -i package.json
- find node_modules -name 'package.json' -exec sed -e "s|${pkgdir}||" -i {} \;
- ./bin/modclean.js -r -a '.bin,bin.js' --ignore='license'
-}
Copied: modclean/repos/community-any/PKGBUILD (from rev 846923, modclean/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-02-06 17:06:14 UTC (rev 846924)
@@ -0,0 +1,29 @@
+# Maintainer: Nicola Squartini <tensor5 at gmail.com>
+
+pkgname=modclean
+pkgver=3.0.0beta.1
+pkgrel=3
+pkgdesc='Remove unwanted files and directories from your node_modules folder'
+arch=('any')
+url='https://github.com/ModClean/modclean'
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+options=(!emptydirs)
+
+package() {
+ npm install -g --prefix="${pkgdir}/usr" ${pkgname}@3.0.0-beta.1
+
+ cd "${pkgdir}/usr/lib/node_modules/${pkgname}"
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s \
+ $(realpath --relative-to="${pkgdir}/usr/share/licenses/${pkgname}" LICENSE) \
+ "${pkgdir}/usr/share/licenses/${pkgname}"
+ sed -e "s|${srcdir}|/|" -i package.json
+ find node_modules -name 'package.json' -exec sed -e "s|${pkgdir}||" -i {} \;
+ ./bin/modclean.js -r -a '.bin,bin.js' --ignore='license'
+
+ # npm gives ownership of ALL FILES to build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "${pkgdir}"
+}
More information about the arch-commits
mailing list