aports/testing/numbat/APKBUILD
znley 1f9ee9f311 testing/*: disable on loongarch64 due to libc crate
Because rust libc crate build failed, these aports cannot
build successfully on loongarch64.
2024-06-24 10:26:33 +00:00

42 lines
1.2 KiB
Text

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=numbat
pkgver=1.9.0
pkgrel=0
pkgdesc="Statically typed programming language for scientific computations"
url="https://numbat.dev/"
# loongarch64: blocked by libc crate
arch="all !s390x !loongarch64" # nix crate fails to build
license="Apache-2.0"
makedepends="cargo cargo-auditable openssl-dev"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/numbat/archive/refs/tags/v$pkgver.tar.gz
use-system-openssl.patch
"
export OPENSSL_NO_VENDOR=1
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -Dm755 target/release/numbat -t "$pkgdir"/usr/bin/
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
cp -r examples "$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="
873a78881e62883ac7e296ea044105b2413382188a95e40989333a119cd6ca5d030fbda6dba3f1fcb656891f7694e193395d4daa7e0cca29b8c3b1821bc217b0 numbat-1.9.0.tar.gz
025bb1315a1dd43d041721e625c4dbc990b38c9491205e67cbe4d2beffe4a62bc909ed4eb4ef6c23b4e98fa9a579a42b9f1a5be5eea746279de8f874e96a7bc0 use-system-openssl.patch
"