diff --git a/testing/dart-sass/APKBUILD b/testing/dart-sass/APKBUILD index 47b040084b65d0b6d66d0c3c668b36d4a89e19ea..891cb7503f2a91f9f72adab3f57d5051c5b6e505 100644 --- a/testing/dart-sass/APKBUILD +++ b/testing/dart-sass/APKBUILD @@ -1,36 +1,53 @@ # Contributor: Lauren N. Liberda <lauren@selfisekai.rocks> # Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks> pkgname=dart-sass -pkgver=1.62.1 +pkgver=1.63.4 pkgrel=0 pkgdesc="The primary implementation of Sass" url="https://sass-lang.com/dart-sass" -arch="aarch64 armv7 x86_64" # dart +# armv7: no buf +arch="aarch64 x86_64" # dart license="MIT" -makedepends="dart-sdk" -source="https://github.com/sass/dart-sass/archive/refs/tags/$pkgver/dart-sass-$pkgver.tar.gz" +depends="dart" +makedepends=" + buf + dart-sdk + " +_protocol_ver=2.0.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-2.0.0.tar.gz + sass + " builddir="$srcdir/dart-sass-$pkgver/" -options="!strip" # dart compile exe can't be stripped prepare() { default_prepare + mkdir build + mv "$srcdir/sass-embedded-protocol-$_protocol_ver" build/language + dart pub get } build() { - dart compile exe -Dversion="$pkgver" -v bin/sass.dart + UPDATE_SASS_PROTOCOL=false \ + dart run grinder protobuf + dart run grinder pkg-compile-snapshot } check() { # sanity - bin/sass.exe --version + dart run ./build/sass.snapshot --version } package() { - install -Dm755 bin/sass.exe "$pkgdir"/usr/bin/sass + install -Dm644 ./build/sass.snapshot "$pkgdir"/usr/lib/dart-sass/sass.jit + install -Dm755 "$srcdir"/sass "$pkgdir"/usr/bin/sass } sha512sums=" -34b88c47ca946050ce87de23cf0c881a9acbf8c7e7980ede1a0923f1a03cf4d601f53122fa8414a013c8420789bcca4cf556959702651351047ead52d4e47fff dart-sass-1.62.1.tar.gz +5b5cb8c1fc97e3c1932bc9d6e3a003e48b6a09cedec4e0d2defa4c26231431e44d098149194e6f69306a8c12dd9241909919926dd469ee7d1d1ae7a9e347c3c9 dart-sass-1.63.4.tar.gz +2610ff935ca3c5305ffd4b2111c6605e28588825c003c567fddbf69c9ae0c02595f1c773ac8d4b5e74ee645931ebee6815066c30f61feb4061b93e3d4db3d0d0 embedded-protocol-2.0.0.tar.gz +739538ce789d4dd81d2f4520bd1c13ea3b3c7c0208c3dbdb5ed85e71d9b49e190aab5023396b0c1c5556d2f3d6e5c18488d0092f27be554411f42cf68efb9daa sass " diff --git a/testing/dart-sass/sass b/testing/dart-sass/sass new file mode 100644 index 0000000000000000000000000000000000000000..8f3f848dac8ad59bfdcb98b1a14f6d436006ca1c --- /dev/null +++ b/testing/dart-sass/sass @@ -0,0 +1,3 @@ +#!/bin/sh + +dart run /usr/lib/dart-sass/sass.jit "$@"