upgpkg: nodejs-csso 5.0.0-2
add LICENSE
This commit is contained in:
parent
8b5e3b0169
commit
5226a8f783
2 changed files with 14 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
pkgbase = nodejs-csso
|
pkgbase = nodejs-csso
|
||||||
pkgdesc = CSS minifier with structural optimisations
|
pkgdesc = CSS minifier with structural optimisations
|
||||||
pkgver = 5.0.0
|
pkgver = 5.0.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://github.com/css/csso
|
url = https://github.com/css/csso
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
|
|
|
@ -1,19 +1,20 @@
|
||||||
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
||||||
|
|
||||||
pkgname=nodejs-csso
|
pkgname=nodejs-csso
|
||||||
|
_npmname=csso
|
||||||
pkgver=5.0.0
|
pkgver=5.0.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="CSS minifier with structural optimisations"
|
pkgdesc="CSS minifier with structural optimisations"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
url="https://github.com/css/csso"
|
url="https://github.com/css/csso"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=('nodejs')
|
depends=('nodejs')
|
||||||
makedepends=('npm')
|
makedepends=('npm')
|
||||||
source=("https://registry.npmjs.org/csso/-/csso-$pkgver.tgz")
|
source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
|
||||||
sha256sums=('5786f51f021300198086494a2a04aa4baf6126f0d39d3a749c28f293655fb893')
|
sha256sums=('5786f51f021300198086494a2a04aa4baf6126f0d39d3a749c28f293655fb893')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
npm install -g --prefix "$pkgdir"/usr "$srcdir"/csso-$pkgver.tgz
|
npm install -g --prefix "$pkgdir"/usr "$srcdir"/$_npmname-$pkgver.tgz
|
||||||
|
|
||||||
# Non-deterministic race in npm gives 777 permissions to random directories.
|
# Non-deterministic race in npm gives 777 permissions to random directories.
|
||||||
# See https://github.com/npm/npm/issues/9359 for details.
|
# See https://github.com/npm/npm/issues/9359 for details.
|
||||||
|
@ -22,4 +23,7 @@ package() {
|
||||||
# npm installs package.json owned by build user
|
# npm installs package.json owned by build user
|
||||||
# https://bugs.archlinux.org/task/63396
|
# https://bugs.archlinux.org/task/63396
|
||||||
chown -R root:root "$pkgdir"
|
chown -R root:root "$pkgdir"
|
||||||
|
|
||||||
|
install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
|
||||||
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue