# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=duckscript pkgver=0.8.20 pkgrel=0 pkgdesc="Simple, extendable and embeddable scripting language" url="https://sagiegurari.github.io/duckscript/" arch="all" license="Apache-2.0" makedepends=" bzip2-dev cargo cargo-auditable openssl-dev zlib-dev " source="https://github.com/sagiegurari/duckscript/archive/$pkgver/duckscript-$pkgver.tar.gz use-zlib.patch " case "$CARCH" in # fails on builders for some reason with new networking arm*|aarch64) options="$options !check" ;; esac _cargo_opts="--frozen --no-default-features --features tls-native" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build $_cargo_opts --release } check() { cargo test $_cargo_opts } package() { install -D -m755 target/release/duck -t "$pkgdir"/usr/bin/ } sha512sums=" 7ffe4ad2d1bb54753d7c262981bf31394404dd71a75919188a5f658de39b9b9215d057da382e220433d866369417e74feaef3ab4ac80df5214b046284f5f840d duckscript-0.8.20.tar.gz daef0e4f82570d89044983c6c45e938686cc95247c4b33d0c44c60a3ec6795fcff0b912ebedfaef02eb3e53d997cbf4a624aaae3b446a41de176b5942b7e90e1 use-zlib.patch "