From c81a16ec523351ee44ffe2a83935ff4871b46f14 Mon Sep 17 00:00:00 2001 From: Mario Finelli Date: Wed, 28 Feb 2018 07:43:26 -0500 Subject: [PATCH] Bump to 4.1.9 --- .SRCINFO | 10 +++++----- PKGBUILD | 24 +++++++++++++++--------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 3ff6b1a..e42a2ae 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,15 +1,15 @@ pkgbase = nodejs-clean-css pkgdesc = A fast, efficient, and well tested CSS minifier for node.js. - pkgver = 3.3.9 + pkgver = 4.1.9 pkgrel = 1 url = https://github.com/jakubpawlowicz/clean-css arch = any license = MIT + makedepends = npm depends = nodejs - depends = npm - noextract = clean-css-3.3.9.tgz - source = https://registry.npmjs.org/clean-css/-/clean-css-3.3.9.tgz - sha256sums = d0351fd10618317d2117cce9d1e1dab7600426ed6f163b45039f0ad592f3588f + noextract = clean-css-4.1.9.tgz + source = https://registry.npmjs.org/clean-css/-/clean-css-4.1.9.tgz + sha256sums = a474469c4af681b798f5e9a6e97c1309a3124ad333e4e6f562ab8b3f8f19e04d pkgname = nodejs-clean-css diff --git a/PKGBUILD b/PKGBUILD index 4800719..77ab7c1 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,22 +1,28 @@ -# Maintainer: Mario Finelli +# Maintainer: Mario Finelli _npmname=clean-css pkgname=nodejs-$_npmname -pkgver=3.3.9 +pkgver=4.1.9 pkgrel=1 pkgdesc="A fast, efficient, and well tested CSS minifier for node.js." arch=('any') url="https://github.com/jakubpawlowicz/clean-css" license=('MIT') -depends=('nodejs' 'npm') +depends=('nodejs') +makedepends=('npm') source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) noextract=($_npmname-$pkgver.tgz) -sha256sums=('d0351fd10618317d2117cce9d1e1dab7600426ed6f163b45039f0ad592f3588f') +sha256sums=('a474469c4af681b798f5e9a6e97c1309a3124ad333e4e6f562ab8b3f8f19e04d') 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 + + rm -r "$pkgdir"/usr/etc + find "$pkgdir/usr" -type d -exec chmod 755 '{}' + + + install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }