summaryrefslogtreecommitdiff
path: root/zenith/Pkgfile
blob: 6d820d683ae887110c06a651c8c934139c3eb739 (plain)
    1 # Description: Terminal system monitor with histograms
    2 # URL: https://github.com/bvaisvil/zenith
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: rust
    5 # Optional: nvidia
    6 
    7 name=zenith
    8 version=0.12.0
    9 release=1
   10 source=(https://github.com/bvaisvil/zenith/archive/$version/$name-$version.tar.gz)
   11 
   12 build() {
   13 	cd $name-$version
   14 	prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   15 	mkdir "$PKGMK_SOURCE_DIR/rust" || true
   16 	export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
   17 
   18 	prt-get isinst nvidia && PKGMK_ZENITH+=' --features nvidia'
   19 	prt-get isinst nvidia-sl && PKGMK_ZENITH+=' --features nvidia'
   20 
   21 	cargo update
   22 	cargo fetch
   23 	cargo build --release --locked ${PKGMK_ZENITH}
   24 	install -Dt $PKG/usr/bin target/release/zenith
   25 }

Generated by cgit