1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/dart-sass-js/APKBUILD
knuxify b20c7f1869 community/dart-sass-js: new aport
https://sass-lang.com/dart-sass/
The reference implementation of Sass, written in Dart (JS/Node version)
2025-05-12 08:11:05 +00:00

37 lines
1.1 KiB
Text

# Contributor: knuxify <knuxify@gmail.com>
# Maintainer: knuxify <knuxify@gmail.com>
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
"