aports/testing/svgbob/APKBUILD
2025-02-01 19:48:00 +00:00

37 lines
1.1 KiB
Text

# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=svgbob
pkgver=0.7.6
pkgrel=0
pkgdesc="Convert your ascii diagram scribbles into happy little SVG"
url="https://github.com/ivanceras/svgbob"
# loongarch64: blocked by libc crate
arch="all !s390x !riscv64 !loongarch64" # limited by rust/cargo
license="Apache-2.0"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/ivanceras/svgbob/archive/$pkgver.tar.gz
update-cargo-lock.patch
"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release
}
check() {
cargo test all --frozen
}
package() {
install -Dm0755 target/release/svgbob_cli "$pkgdir"/usr/bin/svgbob
}
sha512sums="
4b1ade9dc3349b8342037527ec0243eb6be484fd8c47cf87067ef251ffbfd7a49234b7301053526b12c431edfff93430dd6bad72916aadd79231158e42b8bf9a svgbob-0.7.6.tar.gz
12712e1ea1d2f44545261e7ed118cf60b4afa455825b3e66728c53958b8cc659a45fb4a6e463b6ffd3aa450c381973d3ce2f57d15e879252aa8549d46da03b62 update-cargo-lock.patch
"