# Contributor: Lauren N. Liberda # Maintainer: Lauren N. Liberda pkgname=dart-sass pkgver=1.65.1 pkgrel=0 pkgdesc="The primary implementation of Sass" url="https://sass-lang.com/dart-sass" # armv7: no buf arch="aarch64 x86_64" # dart license="MIT" depends="dart" makedepends=" buf dart-sdk " _protocol_ver=2.1.0 source=" https://github.com/sass/dart-sass/archive/refs/tags/$pkgver/dart-sass-$pkgver.tar.gz https://github.com/sass/sass/archive/refs/tags/embedded-protocol-$_protocol_ver.tar.gz sass " builddir="$srcdir/dart-sass-$pkgver/" prepare() { default_prepare mkdir build mv "$srcdir/sass-embedded-protocol-$_protocol_ver" build/language dart pub get } build() { UPDATE_SASS_PROTOCOL=false \ dart run grinder protobuf dart run grinder pkg-compile-snapshot } check() { # sanity dart run ./build/sass.snapshot --version } package() { install -Dm644 ./build/sass.snapshot "$pkgdir"/usr/lib/dart-sass/sass.jit install -Dm755 "$srcdir"/sass "$pkgdir"/usr/bin/sass } sha512sums=" 3a15c56a77c6b1843d72955c2e878c4cf766fc8f7a5c24e3134cea7388e52350cf9f5068363400667f4dc8c5c35b4c07f1b61f3ce74eb8c64b0fed69a4f5451e dart-sass-1.65.1.tar.gz b90253b3e8723e492f56379daa1ec8d1e0789be98c6ba5437e8bcab5c8832f89746ebf0273f5f7d505d094eb628f489da6c6a9efa2cea15d1aa4cac3e494cf25 embedded-protocol-2.1.0.tar.gz 739538ce789d4dd81d2f4520bd1c13ea3b3c7c0208c3dbdb5ed85e71d9b49e190aab5023396b0c1c5556d2f3d6e5c18488d0092f27be554411f42cf68efb9daa sass "