[arch-commits] Commit in modclean/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Jul 7 13:12:35 UTC 2020
Date: Tuesday, July 7, 2020 @ 13:12:34
Author: felixonmars
Revision: 658370
archrelease: copy trunk to community-staging-any
Added:
modclean/repos/community-staging-any/
modclean/repos/community-staging-any/PKGBUILD
(from rev 658369, modclean/trunk/PKGBUILD)
----------+
PKGBUILD | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
Copied: modclean/repos/community-staging-any/PKGBUILD (from rev 658369, modclean/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-07-07 13:12:34 UTC (rev 658370)
@@ -0,0 +1,25 @@
+# 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'
+}
More information about the arch-commits
mailing list