# Contributor: knuxify # Maintainer: knuxify pkgname=dart-sass-js pkgver=1.87.0 pkgrel=0 pkgdesc="The reference implementation of Sass, written in Dart (JS/Node version)" url="https://sass-lang.com/dart-sass/" arch="noarch" license="MIT" depends="nodejs" makedepends="npm" source="https://registry.npmjs.org/sass/-/sass-$pkgver.tgz" options="!check" builddir="$srcdir" unpack() { # skipping unpacking, installing archive directly verify } package() { # Need to omit optional since it contains @parcel/watcher which has a C++ binary npm install \ --global \ --prefix "$pkgdir/usr" \ --omit=optional \ "$srcdir/sass-$pkgver.tgz" # TODO: --omit=optional does not seem to work with the --global flag # (https://github.com/npm/cli/issues/8284), so we have to remove # @parcel/watcher manually rm -r "$pkgdir"/usr/lib/node_modules/sass/node_modules/@parcel chown -R root: "$pkgdir" # npm installs as build user } sha512sums=" 774368147e2fe928c42bb0685fcd7426cae18fb2104981c01cb8bf892a60a8a73b2da203b211519528392ceca67fd16a421c441ecd96e5941796fcb4283e3953 sass-1.87.0.tgz "