diff --git a/testing/jotdown/APKBUILD b/testing/jotdown/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..2c3599f0fd71db4da38e77472e72f5ed02a6fd4c --- /dev/null +++ b/testing/jotdown/APKBUILD @@ -0,0 +1,27 @@ +# Contributor: Andrej Kolchin <KAAtheWise@protonmail.com> +# Maintainer: Andrej Kolchin <KAAtheWise@protonmail.com> +pkgname=jotdown +pkgver=0.4.0 +pkgrel=0 +pkgdesc="A parser for the Djot markup language" +url="https://hllmn.net/projects/jotdown/" +arch="all" +license="MIT" +makedepends="rust cargo cargo-auditable" +source="$pkgname-$pkgver.tar.gz::https://github.com/hellux/jotdown/archive/$pkgver.tar.gz" + +build() { + cargo auditable build --release --locked +} + +check() { + cargo test --release --locked +} + +package() { + install -Dm755 target/release/jotdown "$pkgdir"/usr/bin/jotdown +} + +sha512sums=" +237dcbd3ad047a35f4d19c7d4baa0a8de99fae9d79cc10a7e5716abf9a9a3a150e28106267525f0b65380020427214149c7a626880934c7311ec7e5a1be2c85a jotdown-0.4.0.tar.gz +"