diff options
author | Stijn Seghers | 2020-05-03 18:30:41 +1200 |
---|---|---|
committer | Stijn Seghers | 2020-05-03 18:30:41 +1200 |
commit | f57a8342740196c11ecf67656425d07787f55243 (patch) | |
tree | 0cb62ab05e4a51cf425051eee8169f359ab1db28 | |
parent | da8d9cd68cf4a36a43687bcebe765383252b2998 (diff) | |
download | aur-stylelint.tar.gz |
Bump version to 13.3.3 and ensure correct file ownership & permissions
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 15 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = stylelint - pkgdesc = A mighty, modern linter that helps you avoid errors and enforce conventions in your styles - pkgver = 13.2.1 + pkgdesc = A linter for CSS-like syntaxes like SCSS, Sass, Less and SugarSS + pkgver = 13.3.3 pkgrel = 1 url = https://stylelint.io/ arch = any @@ -8,9 +8,9 @@ pkgbase = stylelint makedepends = npm depends = nodejs optdepends = stylelint-config-standard: config for common conventions - noextract = stylelint-13.2.1.tgz - source = https://registry.npmjs.org/stylelint/-/stylelint-13.2.1.tgz - sha256sums = d546f244aa67e0b321ae577be50263707589509819b8c479c74cecf1c21491fc + noextract = stylelint-13.3.3.tgz + source = https://registry.npmjs.org/stylelint/-/stylelint-13.3.3.tgz + sha256sums = 7691a41622514d9b8298511907c7b58e5d83aeeba63482481706c21294d34085 pkgname = stylelint @@ -1,9 +1,9 @@ # Maintainer: Stijn Seghers <stijnseghers at gmail dot com> pkgname=stylelint -pkgver=13.2.1 +pkgver=13.3.3 pkgrel=1 -pkgdesc='A mighty, modern linter that helps you avoid errors and enforce conventions in your styles' +pkgdesc='A linter for CSS-like syntaxes like SCSS, Sass, Less and SugarSS' arch=('any') url='https://stylelint.io/' license=('MIT') @@ -12,14 +12,19 @@ optdepends=('stylelint-config-standard: config for common conventions') makedepends=('npm') source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") noextract=("$pkgname-$pkgver.tgz") -sha256sums=('d546f244aa67e0b321ae577be50263707589509819b8c479c74cecf1c21491fc') +sha256sums=('7691a41622514d9b8298511907c7b58e5d83aeeba63482481706c21294d34085') package() { - npm install -g --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz" + npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz" - # For some odd reason, npm makes some directories world writeable D: + # Non-deterministic race in npm gives 777 permissions to random directories. + # See https://github.com/npm/npm/issues/9359 for details. 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 license in the usual place local _npmdir="$pkgdir/usr/lib/node_modules/" install -Dm644 "$_npmdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |