summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Legner2021-03-27 09:33:48 +0000
committerSimon Legner2021-03-27 09:33:48 +0000
commit5c5bc629b2cd8662125731d1e1840c3008387431 (patch)
treed0b620fd38bc30417141fbdf5f1ff5ea6624e2e6
parentbc9189a0e5e6fc37edbe1125314c462b6ae2ecd4 (diff)
downloadaur-5c5bc629b2cd8662125731d1e1840c3008387431.tar.gz
upgpkg: svgo 2.2.2-2
Node.js package guidelines
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 3 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2acd37a66c0..b9b2aa5d13e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = svgo
pkgdesc = Tool for optimizing SVG files
pkgver = 2.2.2
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/svg/svgo
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index eb78c8e8e82..a6fe659fcd2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Simon Legner <Simon.Legner@gmail.com>
pkgname=svgo
pkgver=2.2.2
-pkgrel=1
+pkgrel=2
pkgdesc='Tool for optimizing SVG files'
arch=(any)
url=https://github.com/svg/svgo
@@ -15,9 +15,8 @@ source=(https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz)
noextract=($pkgname-$pkgver.tgz)
package() {
- npm install -g --user root --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
+ npm install -g --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tgz"
find "${pkgdir}/usr" -type d -exec chmod 755 {} +
- find "$pkgdir" -name package.json -print0 | xargs -r -0 sed -i '/_where/d'
chown -R root:root "${pkgdir}"
}