testing/edu-sync: new aport

https://github.com/mkroening/edu-sync
Moodle synchronization utility
This commit is contained in:
fossdd 2024-09-11 12:20:47 +02:00 committed by omni
parent 85eb1a71ae
commit 2b06369b6d

34
testing/edu-sync/APKBUILD Normal file
View File

@ -0,0 +1,34 @@
# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=edu-sync
pkgver=0.2.2
pkgrel=0
pkgdesc="Moodle synchronization utility"
url="https://github.com/mkroening/edu-sync"
arch="all"
license="GPL-3.0-only"
makedepends="cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/mkroening/edu-sync/archive/refs/tags/v$pkgver.tar.gz"
options="net" # downloading rust crates
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --frozen --release --bin edu-sync-cli
}
check() {
cargo test --frozen --release
}
package() {
install -Dm755 target/release/edu-sync-cli -t "$pkgdir"/usr/bin/
}
sha512sums="
3f40f6a8579cd69455ea484c458b85b6f3d2953385f7beed6583851c764c17e2c45c1e2ca4cccd121ac22da321ab48b47fdc5fa90dd1ead00cdc6029af521f37 edu-sync-0.2.2.tar.gz
"