diff --git a/testing/edu-sync/APKBUILD b/testing/edu-sync/APKBUILD new file mode 100644 index 00000000000..97ff93fad76 --- /dev/null +++ b/testing/edu-sync/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: fossdd +# Maintainer: fossdd +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 +"