contrib/zenith/Pkgfile

24 lines
709 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
# Maintainer: Danny Rawlins, crux at romster dot me
2022-05-31 23:01:49 +02:00
# Depends on: clang rust
2020-12-06 08:53:59 +01:00
# Optional: nvidia
name=zenith
2022-05-31 23:01:49 +02:00
version=0.13.1
2020-12-06 08:53:59 +01:00
release=1
source=(https://github.com/bvaisvil/zenith/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
prt-get isinst nvidia && PKGMK_ZENITH+=' --features nvidia'
prt-get isinst nvidia-sl && PKGMK_ZENITH+=' --features nvidia'
2022-05-31 23:01:49 +02:00
cargo build --release ${PKGMK_ZENITH}
2020-12-06 08:53:59 +01:00
install -Dt $PKG/usr/bin target/release/zenith
}