contrib/zenith/Pkgfile

23 lines
735 B
Plaintext
Raw Normal View History

2020-12-06 08:53:59 +01:00
# Description: Terminal system monitor with histograms
# URL: https://github.com/bvaisvil/zenith
2023-02-25 12:41:51 +01:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2022-05-31 23:01:49 +02:00
# Depends on: clang rust
2020-12-06 08:53:59 +01:00
# Optional: nvidia
name=zenith
2023-02-25 12:41:51 +01:00
version=0.14.0
2020-12-06 08:53:59 +01:00
release=1
source=(https://github.com/bvaisvil/zenith/archive/$version/$name-$version.tar.gz)
build() {
2023-02-25 12:41:51 +01:00
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
2020-12-06 08:53:59 +01:00
2023-02-25 12:41:51 +01:00
prt-get isinst nvidia && PKGMK_ZENITH+=' --features nvidia'
prt-get isinst nvidia-sl && PKGMK_ZENITH+=' --features nvidia'
2020-12-06 08:53:59 +01:00
2023-02-25 12:41:51 +01:00
cargo build --release --manifest-path $name-$version/Cargo.toml ${PKGMK_ZENITH}
install -Dt $PKG/usr/bin $name-$version/target/release/$name
2020-12-06 08:53:59 +01:00
}