summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMario Finelli2018-12-05 08:34:16 -0500
committerMario Finelli2018-12-05 08:34:16 -0500
commitce6c5ca7b3a57d54150a41e10d7d163061a14ee6 (patch)
tree4accd1ba6156f276ec30147c10ccac8ef7f1b0f9 /PKGBUILD
parent67e0a14ea9f3df0e4bca1601c2fd29c0fc49fe69 (diff)
downloadaur-ce6c5ca7b3a57d54150a41e10d7d163061a14ee6.tar.gz
Bump to 6.0.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0834507bf38..48b86465eb9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,26 @@
_npmname=postcss-cli
pkgname=nodejs-$_npmname
-pkgver=2.4.1
+pkgver=6.0.0
pkgrel=1
pkgdesc="Traditional CLI for postcss."
arch=('any')
url="https://github.com/code42day/postcss-cli"
license=('MIT')
-depends=('nodejs' 'npm')
+depends=('nodejs')
+makedepends=(npm)
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
-sha256sums=('528c7445fc091724bee1177b3acd823d0669d7fb441344a164fc18c41ca7fce0')
+sha256sums=('28eaf135eb187f880198bf2422e54321d15759af10c65734a6fff460de5c7cc2')
package() {
- cd "$srcdir"
- local _npmdir="$pkgdir/usr/lib/node_modules/"
- mkdir -p "$_npmdir"
- cd "$_npmdir"
- npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+ npm install \
+ --user root --global \
+ --prefix "$pkgdir/usr" \
+ "$srcdir"/$_npmname-$pkgver.tgz
+
+ find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+
+ install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}