ptrcnull fbcf4c4f11 */*: utilise sparse crates.io fetches
this is a million times faster

new only in rust 1.68, and fails on older versions,
but we have only latest in aports and don't support anything else, so
it's okay.
2023-03-10 00:35:53 +01:00

45 lines
1.1 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=duckscript
pkgver=0.8.17
pkgrel=0
pkgdesc="Simple, extendable and embeddable scripting language"
url="https://sagiegurari.github.io/duckscript/"
arch="all"
license="Apache-2.0"
makedepends="cargo openssl-dev>3"
source="https://github.com/sagiegurari/duckscript/archive/$pkgver/duckscript-$pkgver.tar.gz
zip-features.patch
"
case "$CARCH" in
riscv64) options="$options textrels"
esac
_cargo_opts="--frozen --no-default-features --features tls-native"
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build $_cargo_opts --release
}
check() {
cargo test $_cargo_opts
}
package() {
install -D -m755 target/release/duck -t "$pkgdir"/usr/bin/
}
sha512sums="
78aae25c966b062ccdce6bc98e33833c28d748335395b278dd77e844a2148e456cb7c8fa485d664346608e393f12b8a6da2abbfea81a938eefa7ffeca64cfe30 duckscript-0.8.17.tar.gz
ce6538692285ff94fba993f74e61de26bfcd1f39144529810b3aceb5904c32728fbef5056634d8ffc14990685ae74ed85c5d535bac6ace7ca2ed65cb9d230691 zip-features.patch
"