upgpkg: nodejs-clean-css 5.1.2-1

upstream release
This commit is contained in:
Cedric Girard 2021-05-15 18:20:45 +02:00
parent e52c46a5da
commit 870330fa49
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4
2 changed files with 16 additions and 12 deletions

View file

@ -1,15 +1,15 @@
pkgbase = nodejs-clean-css
pkgdesc = A fast, efficient, and well tested CSS minifier for node.js.
pkgver = 4.2.1
pkgver = 5.1.2
pkgrel = 1
url = https://github.com/jakubpawlowicz/clean-css
arch = any
license = MIT
makedepends = npm
depends = nodejs
noextract = clean-css-4.2.1.tgz
source = https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz
sha256sums = 60b2c9d633fd0843d6eef91fce82b81258d762b0d1bec6ccea7edb275c0ba32f
noextract = clean-css-5.1.2.tgz
source = https://registry.npmjs.org/clean-css/-/clean-css-5.1.2.tgz
sha256sums = 1032221d97b5e0f7c7516eb584643e76392d04188e1472bec152756d7ea90b27
pkgname = nodejs-clean-css

View file

@ -1,8 +1,9 @@
# Maintainer: Mario Finelli <mario at finel dot li>
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
# Contributor: Mario Finelli <mario at finel dot li>
_npmname=clean-css
pkgname=nodejs-$_npmname
pkgver=4.2.1
pkgver=5.1.2
pkgrel=1
pkgdesc="A fast, efficient, and well tested CSS minifier for node.js."
arch=('any')
@ -12,15 +13,18 @@ depends=('nodejs')
makedepends=('npm')
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('60b2c9d633fd0843d6eef91fce82b81258d762b0d1bec6ccea7edb275c0ba32f')
sha256sums=('1032221d97b5e0f7c7516eb584643e76392d04188e1472bec152756d7ea90b27')
package() {
npm install \
--user root --global \
--prefix "$pkgdir/usr" \
"$srcdir"/$_npmname-$pkgver.tgz
npm install -g --prefix "$pkgdir/usr" "$srcdir"/$_npmname-$pkgver.tgz
find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
chmod -R u=rwX,go=rX "$pkgdir"
# npm installs package.json owned by build user
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"