diff options
author | Mario Finelli | 2021-01-03 12:48:25 -0500 |
---|---|---|
committer | Mario Finelli | 2021-01-03 12:48:25 -0500 |
commit | 4360c1d9c8c24f9bc7786222b9636386fd0acc47 (patch) | |
tree | 3fbfe6ed4cca7e98e7820fcf73bf55763a707452 /PKGBUILD | |
parent | 2ac1513fcc94bdc84469b91bc080ab029d64ebff (diff) | |
download | aur-4360c1d9c8c24f9bc7786222b9636386fd0acc47.tar.gz |
Cleanup and bump to 4.3.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 15 insertions, 8 deletions
@@ -2,26 +2,33 @@ _npmname=clean-css-cli pkgname=nodejs-$_npmname -pkgver=4.2.1 +pkgver=4.3.0 pkgrel=1 -pkgdesc="The command line interface to clean-css CSS optimizer." -arch=('any') -url="https://github.com/jakubpawlowicz/clean-css-cli" -license=('MIT') -depends=('nodejs') -makedepends=('npm') +pkgdesc="The command line interface to clean-css CSS optimizer" +arch=(any) +url=https://github.com/jakubpawlowicz/clean-css-cli +license=(MIT) +depends=(nodejs) +makedepends=(npm) source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz) noextract=($_npmname-$pkgver.tgz) -sha256sums=('96066c72dd16ccc32a5a453063f74ae78c27ab49ad9e2bb21f134d8720a4b455') +sha256sums=('bd385433591f8f8d01039a9bad10730a9825a8301c9b14f73006e515858ddacd') package() { npm install \ + --cache "$srcdir/.npm-cache" \ --user root --global \ --prefix "$pkgdir/usr" \ "$srcdir"/$_npmname-$pkgver.tgz find "$pkgdir/usr" -type d -exec chmod 755 '{}' + + # npm gives ownership of ALL FILES to 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" } + +# vim: set ts=2 sw=2 et: |