1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/duckscript/APKBUILD
psykose 39f6fef713 */*: cargo fetch with --target
this does not download deps that won't be used for the default build
target (the ctarget we are building for implicitly).
this makes quite a few fetches faster.. because a ton of crates download
a 10mb "windows-sys" that is never used, amongst other things.

maybe breaks a thing or two.
2023-02-11 16:56:41 +01:00

42 lines
1.1 KiB
Text

# 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"
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
"