aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dart-sass/APKBUILD
blob: ab369326eb5c542138ec5a275fe4a0ceab9657a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
pkgname=dart-sass
pkgver=1.71.0
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="dartaotruntime"
makedepends="
	buf
	dart-sdk
	"
_protocol_ver=2.5.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

	lock.patch
	"
builddir="$srcdir/dart-sass-$pkgver/"

prepare() {
	mkdir build
	mv "$srcdir/sass-embedded-protocol-$_protocol_ver" build/language

	default_prepare

	dart pub get --enforce-lockfile
}

build() {
	UPDATE_SASS_PROTOCOL=false \
		dart run grinder protobuf
	dart compile aot-snapshot -Dversion="$pkgver" ./bin/sass.dart
}

check() {
	# sanity
	dartaotruntime ./bin/sass.aot --version
}

package() {
	install -Dm644 ./bin/sass.aot "$pkgdir"/usr/lib/dart-sass/sass.aot
	install -Dm755 "$srcdir"/sass "$pkgdir"/usr/bin/sass
}

sha512sums="
b351d7389c6845da98a651472d2982833f8bde41e2496d0b3b5b638a8c0307cb8197e349a5c3c1b5e7441a096e38416606433fe7a9f07efb0dafc95ee56a5132  dart-sass-1.71.0.tar.gz
c9e93657c96033622824225e86c9e4e4e7f1b99c8e5d3d01eee7487e9cf3a17d35233df4a3d0e06067a0b49573045f8f7b07b924f4bc4171da3458428eb3afc3  embedded-protocol-2.5.0.tar.gz
e974b32f3ca9155868282c2259f693b49bd8c8b57772126efa6e29efedcf4acdb2b1359ae0cb5b0552dfd84daa0ae9273ebe90de7f66670a0a6abd75958cac6d  sass
63423e899ef36ed0a25007d078c7c729c435f8296e27291797313ed357c6c86576a929f422e53e03d253e62157d15915bdbe006243ff2a4ecb8472d2278adf35  lock.patch
"