aports/testing/wiki-tui/APKBUILD

44 lines
1.2 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=wiki-tui
pkgver=0.8.2
pkgrel=1
pkgdesc="Simple and easy to use Wikipedia Text User Interface"
url="https://github.com/Builditluc/wiki-tui"
arch="all"
license="MIT"
makedepends="
cargo
cargo-auditable
openssl-dev
"
subpackages="$pkgname-doc"
source="
$pkgname-$pkgver.tar.gz::https://github.com/Builditluc/wiki-tui/archive/v$pkgver.tar.gz
cargo-update.patch"
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/wiki-tui -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="
9240c17ab9410bf4182349701d06df73f56b11fceb24415c5249a982026fb236d87ab151b7a5b62683d70c38414fe67270b8f2012eb9188fddebf2d6c366fd22 wiki-tui-0.8.2.tar.gz
76d987d2825ba41f0d5aadc8dea946ff55e4355a0ccd0accfb52d9ef24f96bade933eea94a22838c582e4a7766ed6d4d6fbaeeccfde456714c2edefc834e7d1a cargo-update.patch
"