upgpkg: nodejs-clean-css 5.1.2-1
upstream release
This commit is contained in:
parent
e52c46a5da
commit
870330fa49
2 changed files with 16 additions and 12 deletions
|
@ -1,15 +1,15 @@
|
||||||
pkgbase = nodejs-clean-css
|
pkgbase = nodejs-clean-css
|
||||||
pkgdesc = A fast, efficient, and well tested CSS minifier for node.js.
|
pkgdesc = A fast, efficient, and well tested CSS minifier for node.js.
|
||||||
pkgver = 4.2.1
|
pkgver = 5.1.2
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/jakubpawlowicz/clean-css
|
url = https://github.com/jakubpawlowicz/clean-css
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
makedepends = npm
|
makedepends = npm
|
||||||
depends = nodejs
|
depends = nodejs
|
||||||
noextract = clean-css-4.2.1.tgz
|
noextract = clean-css-5.1.2.tgz
|
||||||
source = https://registry.npmjs.org/clean-css/-/clean-css-4.2.1.tgz
|
source = https://registry.npmjs.org/clean-css/-/clean-css-5.1.2.tgz
|
||||||
sha256sums = 60b2c9d633fd0843d6eef91fce82b81258d762b0d1bec6ccea7edb275c0ba32f
|
sha256sums = 1032221d97b5e0f7c7516eb584643e76392d04188e1472bec152756d7ea90b27
|
||||||
|
|
||||||
pkgname = nodejs-clean-css
|
pkgname = nodejs-clean-css
|
||||||
|
|
||||||
|
|
|
@ -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
|
_npmname=clean-css
|
||||||
pkgname=nodejs-$_npmname
|
pkgname=nodejs-$_npmname
|
||||||
pkgver=4.2.1
|
pkgver=5.1.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A fast, efficient, and well tested CSS minifier for node.js."
|
pkgdesc="A fast, efficient, and well tested CSS minifier for node.js."
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
@ -12,15 +13,18 @@ depends=('nodejs')
|
||||||
makedepends=('npm')
|
makedepends=('npm')
|
||||||
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
|
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
|
||||||
noextract=($_npmname-$pkgver.tgz)
|
noextract=($_npmname-$pkgver.tgz)
|
||||||
sha256sums=('60b2c9d633fd0843d6eef91fce82b81258d762b0d1bec6ccea7edb275c0ba32f')
|
sha256sums=('1032221d97b5e0f7c7516eb584643e76392d04188e1472bec152756d7ea90b27')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
npm install \
|
npm install -g --prefix "$pkgdir/usr" "$srcdir"/$_npmname-$pkgver.tgz
|
||||||
--user root --global \
|
|
||||||
--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" \
|
install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
|
||||||
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
|
Loading…
Reference in a new issue