From ba9bca47307c77857bf5e03322cdf016a99435ae Mon Sep 17 00:00:00 2001 From: madomado Date: Tue, 13 Jun 2023 23:39:55 +0800 Subject: [PATCH] fix: sass (#512) Signed-off-by: madomado --- anda/others/sass/sass.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/anda/others/sass/sass.spec b/anda/others/sass/sass.spec index b6c134c36e..abebf3a2d7 100644 --- a/anda/others/sass/sass.spec +++ b/anda/others/sass/sass.spec @@ -12,7 +12,7 @@ URL: https://sass-lang.com/dart-sass Source0: https://github.com/sass/dart-sass/archive/refs/tags/%{version}.tar.gz -BuildRequires: dart +BuildRequires: dart git %description Dart Sass is the primary implementation of Sass, which means it gets new features before any other implementation. It's fast, easy to install, and it compiles to pure JavaScript which makes it easy to integrate into modern web development workflows. @@ -22,6 +22,12 @@ Dart Sass is the primary implementation of Sass, which means it gets new feature /usr/bin/dart pub get %build +# first install `buf` +curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.21.0/buf-$(uname -s)-$(uname -m)" -o buf +chmod +x buf +cp buf /bin/ # this is stupid but maybe it works and I can finally die "piecefully" + +dart run grinder protobuf dart compile exe ./bin/sass.dart -o sass %install