blob: a7c4e0a58c8611c71e96f446e318bfd87b884af4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: ObserverOfTime <chronobserver@disroot.org>
pkgname=stylelint-scss
pkgver=4.0.0
pkgrel=1
pkgdesc='A collection of SCSS specific linting rules for stylelint'
arch=('any')
url='https://github.com/kristerkari/stylelint-scss'
license=('MIT')
depends=()
makedepends=('npm')
optdepends=('stylelint: peer dependency')
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz")
sha256sums=('c0e0bf093eb8702832a09e167ea67173f0a6e179ec1ee9658913989253acea47')
package() {
npm install -g --prefix="$pkgdir/usr" \
--only=prod "$srcdir/$pkgname-$pkgver.tgz"
# Remove stylelint
rm -rf "$pkgdir"/usr/{lib/node_modules,bin}/stylelint
# Fix directory permissions
find "$pkgdir/usr" -type d -exec chmod 755 {} +
install -Dm644 \
"$pkgdir/usr/lib/node_modules/$pkgname/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|