# Maintainer: Stijn Seghers pkgname=stylelint pkgver=9.3.0 pkgrel=1 pkgdesc='A mighty, modern CSS linter that helps you enforce consistent conventions and avoid errors in your stylesheets' arch=('any') url='https://stylelint.io/' license=('MIT') depends=('nodejs') optdepends=('stylelint-config-standard') makedepends=('npm') source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") noextract=("$pkgname-$pkgver.tgz") sha512sums=('bb9f6959396b7708eaae226d4ef3b56b4c112b599f6d0429ee32eddbb497e339761e6b551ce33f235c1de37c474ef5096432a9d4f4cea6a4406a6537805be638') package() { npm install -g --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz" # For some odd reason, npm makes some directories world writeable D: find "$pkgdir/usr" -type d -exec chmod 755 {} + # Install license in the usual place local _npmdir="$pkgdir/usr/lib/node_modules/" install -Dm644 "$_npmdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }