diff --git a/testing/tui-journal/APKBUILD b/testing/tui-journal/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..8c827375f1c875544efa29f2512309359c1b61d2 --- /dev/null +++ b/testing/tui-journal/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com> +# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com> +pkgname=tui-journal +_pkgname=tjournal +pkgver=0.3.1 +pkgrel=0 +pkgdesc="Write and manage journals/notes from the terminal" +url="https://github.com/AmmarAbouZor/tui-journal" +arch="all" +license="MIT" +makedepends=" + cargo + cargo-auditable + openssl-dev + " +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/AmmarAbouZor/tui-journal/archive/v$pkgver.tar.gz" +options="net" + +prepare() { + default_prepare + + cargo fetch --target="$CTARGET" --locked +} + +build() { + cargo auditable build --release --frozen +} + +check() { + cargo test --frozen +} + +package() { + install -Dm 755 "target/release/$_pkgname" -t "$pkgdir/usr/bin" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +} + +sha512sums=" +61417cac58a901c95001f2b967ec4db8eb814cf78da275b7c06ab68b08ebbe92785b8578766b27281a79268d4f3572832ce35836e52e33b24a5ad4213f7febc4 tui-journal-0.3.1.tar.gz +"