summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgfulgaro2021-03-27 12:21:42 +0100
committergfulgaro2021-03-27 12:21:42 +0100
commit1686c08365234596416bb8a7fc775d10b971b57f (patch)
tree72a839a55d236c54f46eaa8fa6617766bf8da914
parent89014f797566374416912323f8d24f5d986ebc96 (diff)
downloadaur-1686c08365234596416bb8a7fc775d10b971b57f.tar.gz
fix install issues
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6f3d08f3978..f01d5a253a4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = angular-cli
pkgdesc = CLI tool for Angular
pkgver = 11.2.6
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/angular/angular-cli
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 052984ffdd5..aa283288716 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ _npmid="@$_npmscope/$_npmname"
pkgname="$_npmscope-$_npmname"
pkgver=11.2.6
-pkgrel=1
+pkgrel=2
pkgdesc="CLI tool for Angular"
arch=('any')
url="https://github.com/$_npmscope/$pkgname"
@@ -22,7 +22,7 @@ sha1sums=('9145a282ef55b93c41d27650e4988d137cac7702')
package() {
# Setting temporary cache
- npm install -g --user root --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "${source[@]%%::*}"
+ npm install -g --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "${source[@]%%::*}"
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
@@ -33,11 +33,11 @@ package() {
chown -R root:root $pkgdir
# Package contains reference to $srcdir/$pkgdir
- find "${pkgdir}" -type f -name package.json -execdir sed -i '/_where/d' {} \+
+ #find "${pkgdir}" -type f -name package.json -execdir sed -i '/_where/d' {} \+
# print first line (the '{' symbol) and lines from the first non-underscored key to the end
# (npm internal keys are underscored but we don't need these keys)
- sed -i -n '1p;/ "[^_].*": {$/,$p' "$pkgdir"/usr/lib/node_modules/"$_npmid"/package.json
- sed -i "s|$pkgdir||" "$pkgdir"/usr/lib/node_modules/"$_npmid"/node_modules/sshpk/package.json
+ #sed -i -n '1p;/ "[^_].*": {$/,$p' "$pkgdir"/usr/lib/node_modules/"$_npmid"/package.json
+ #sed -i "s|$pkgdir||" "$pkgdir"/usr/lib/node_modules/"$_npmid"/node_modules/sshpk/package.json
install -Dm644 "$pkgdir/usr/lib/node_modules/$_npmid/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}