archrelease: copy trunk to community-any
[ArchLinux/community.git] / zenith / repos / community-x86_64 / PKGBUILD
blob1ccbd5966e8a02bfcc82140e40879efc00f87fc4
1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Sergey A. <murlakatamenka@disroot.org>
4 pkgname=zenith
5 pkgver=0.14.0
6 pkgrel=2
7 pkgdesc="Terminal system monitor with histograms, written in Rust"
8 arch=('x86_64')
9 url="https://github.com/bvaisvil/zenith"
10 license=('MIT')
11 depends=('gcc-libs')
12 makedepends=('cargo' 'clang')
13 optdepends=('nvidia-utils')
14 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
15 sha256sums=('2cbcea2625cfa97c161b974ad412a47e330f7fd31bec0479e329ed3606cfc569')
17 prepare() {
18   cd "$pkgname-$pkgver"
19   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
22 build() {
23   cd "$pkgname-$pkgver"
24   cargo build --release --frozen
27 check() {
28   cd "$pkgname-$pkgver"
29   cargo test --frozen
32 package() {
33   cd "$pkgname-$pkgver"
34   install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
35   install -Dm 644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname"
36   install -Dm 644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
37   install -Dm 644 "assets/$pkgname.desktop" -t "$pkgdir/usr/share/applications"
38   install -Dm 644 "assets/$pkgname.png" -t "$pkgdir/usr/share/pixmaps"
41 # vim: ts=2 sw=2 et: