2021-01-02 15:19:44 +01:00
|
|
|
# Maintainer: Cedric Girard <cgirard [dot] archlinux [at] valinor [dot] fr>
|
|
|
|
|
|
|
|
pkgname=nodejs-csso
|
2021-12-06 10:38:47 +01:00
|
|
|
_npmname=csso
|
2022-03-09 15:54:36 +01:00
|
|
|
pkgver=5.0.3
|
2022-01-03 10:50:47 +01:00
|
|
|
pkgrel=1
|
2021-01-02 15:19:44 +01:00
|
|
|
pkgdesc="CSS minifier with structural optimisations"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/css/csso"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('nodejs')
|
|
|
|
makedepends=('npm')
|
2021-12-06 10:38:47 +01:00
|
|
|
source=("https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz")
|
2022-03-09 15:54:36 +01:00
|
|
|
sha256sums=('a6ee6c6b6c2d09abe59bb5f435ce20156f96fd84043c52d02e20032363689afe')
|
2021-01-02 15:19:44 +01:00
|
|
|
|
|
|
|
package() {
|
2021-12-13 14:49:52 +01:00
|
|
|
npm install -g --prefix "$pkgdir"/usr --cache "${srcdir}/npm-cache" "$srcdir"/$_npmname-$pkgver.tgz
|
2021-05-19 13:56:12 +02:00
|
|
|
|
2021-12-06 10:38:47 +01:00
|
|
|
# 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"
|
2021-01-02 15:19:44 +01:00
|
|
|
}
|