aports/testing/tui-journal/APKBUILD
2025-02-13 18:47:09 +00:00

42 lines
1.1 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
pkgname=tui-journal
_pkgname=tjournal
pkgver=0.10.0
pkgrel=0
pkgdesc="Write and manage journals/notes from the terminal"
url="https://github.com/AmmarAbouZor/tui-journal"
arch="all !s390x" # s390x: nix crate
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="
1792c66152316bdde17ddb5e028624fb4ad10404f9eb6de64d0f4e710f0b70fd3298280a28629557075dc900ff26e14dd5f1a4c8797ad2bf7f416f6139618424 tui-journal-0.10.0.tar.gz
"