testing/grass: new aport

This commit is contained in:
Lauren N. Liberda 2023-04-20 14:31:53 +00:00 committed by psykose
parent 7ba62b3c28
commit 02b989dfd9

35
testing/grass/APKBUILD Normal file
View File

@ -0,0 +1,35 @@
# Contributor: Lauren N. Liberda <lauren@selfisekai.rocks>
# Maintainer: Lauren N. Liberda <lauren@selfisekai.rocks>
pkgname=grass
pkgver=0.12.3
pkgrel=0
pkgdesc="Sass compiler written purely in Rust"
url="https://github.com/connorskees/grass"
arch="all"
license="MIT"
makedepends="cargo"
source="
https://github.com/connorskees/grass/archive/v$pkgver/grass-v$pkgver.tar.gz
"
prepare() {
default_prepare
cargo fetch --locked --target="$CTARGET"
}
build() {
cargo build -p grass --release --frozen
}
check() {
cargo test -p grass --tests
}
package() {
install -Dm755 target/release/grass "$pkgdir"/usr/bin/grass
}
sha512sums="
ea70ce7627059cd567052edcd0c0259f9f7b5db38d66211ab4c3310470ba27cf19d828731930ae56ec506fe58d5acbc2e7b53b1aef9ae274dea51e3f78efaa23 grass-v0.12.3.tar.gz
"