2019-09-02 22:24:44 +02:00
|
|
|
# Description: i3status replacement written in rust
|
|
|
|
# URL: https://github.com/greshake/i3status-rust
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2020-02-29 23:58:17 +00:00
|
|
|
# Depends on: dbus pulseaudio rust
|
2019-09-02 22:24:44 +02:00
|
|
|
|
|
|
|
name=i3status-rust
|
2020-06-10 06:57:03 +00:00
|
|
|
version=0.14.1
|
2020-06-07 13:59:11 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/greshake/i3status-rust/archive/v$version/$name-$version.tar.gz)
|
2019-09-02 22:24:44 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
cargo fetch
|
|
|
|
cargo build --release
|
|
|
|
install -Dt $PKG/usr/bin target/release/i3status-rs
|
|
|
|
}
|