31 lines
897 B
Bash
31 lines
897 B
Bash
# 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"
|
|
}
|