# Maintainer: Stijn Seghers pkgname=stylelint pkgver=9.10.1 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=('f54887c5984e007120790ee82c6c2bc280d1f2f72504a9525fbaf87c7d22baed127cfc0568b91bd5ced0da3d5caa0f4fec80d77805764ef40c2ff7d143318105') 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" }