aports/testing/bartib/APKBUILD
2024-07-10 08:31:00 +00:00

36 lines
1 KiB
Text

# Contributor: guddaff <guddaff@protonmail.com>
# Maintainer: guddaff <guddaff@protonmail.com>
pkgname=bartib
pkgver=1.0.1
pkgrel=1
pkgdesc="simple timetracker for the command line"
url="https://github.com/nikolassv/bartib"
arch="all !s390x !riscv64" # limeted by rust/cargo
license="GPL-3.0-or-later"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/nikolassv/bartib/archive/refs/tags/v$pkgver.tar.gz
cargo-update.patch"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
}
check() {
cargo test --frozen
}
package() {
cargo auditable install --frozen --offline --path . --root="$pkgdir/usr"
rm "$pkgdir"/usr/.crates*
}
sha512sums="
ba66195bf6bc382cf366de95aadb3b6c49c5d27bf772cd2cdbe082740df181c6efdd12d04a05cde6afe5c3b732226ba806981d27d275924e1b2c2545fd67cd3b bartib-1.0.1.tar.gz
3d792e5a4c0243e533d1bae0c20c5cabd6abe8596f813697dbccc33ecedd5395a1278f9a73230ee968f0d0e0f633389922f7353d4bb8b72b386624f71bd5871e cargo-update.patch
"