1
0
forked from ports/contrib

i3status-rust: 0.14.1 -> 0.14.2

This commit is contained in:
Tim Biermann 2020-10-31 14:50:52 +00:00
parent 33b09aaca6
commit bff63b868b
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 16 additions and 6 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF34cv4G3wqeMLSIAo7i6l28chgFR7+G3xmk4CULqMscpj0uZirUQqOlpwl70ljnGWHHIt/PNdOC5nMNs2yZLKNAs=
SHA256 (Pkgfile) = 13250502510d608a290138502dabe6ced7931be1d66e1fa954559ad0a5e53f5d
RWSagIOpLGJF36Z8nrBB7viV7aiRDxrwJDy7nYiRwPjLMBBLEXzzNyRSvnfFEPVBQnEhc45b8oCXURrMUHHIbkNTOjiralgObwE=
SHA256 (Pkgfile) = c6bcc6814c69f1bf0e88beaec34aa785a0722e8b531f79f1e6dc388f12527d59
SHA256 (.footprint) = 46e38c743630719fc5db8383d793d119a83726afb7568114366b2b9c2d3ed80b
SHA256 (i3status-rust-0.14.1.tar.gz) = bd22d28b8c3d35c93610b9f46a04fe49a92d62a466dbf0669ceb6b77943c5406
SHA256 (i3status-rust-0.14.2.tar.gz) = 66a11cbcfa515c761701788edd573d408391c024086219d8b6641333129a6f87

View File

@ -1,19 +1,29 @@
# Description: i3status replacement written in rust
# URL: https://github.com/greshake/i3status-rust
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: dbus pulseaudio rust
# Depends on: dbus rust
# Optional: notmuch pulseaudio
name=i3status-rust
version=0.14.1
version=0.14.2
release=1
source=(https://github.com/greshake/i3status-rust/archive/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
# configure optional dependencies
[[ -e /usr/lib/libnotmuch.so ]] && PKGMK_I3STATUS_RUST+=' notmuch'
[[ -e /usr/lib/pulseaudio/libpulsecommon-13.0.so ]] && PKGMK_I3STATUS_RUST+=' libpulse-binding'
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo update
cargo fetch
cargo build --release
[[ -n $PKGMK_I3STATUS_RUST ]] \
&& cargo build --release --features "$PKGMK_I3STATUS_RUST" \
|| cargo build --release --no-default-features
install -Dt $PKG/usr/bin target/release/i3status-rs
}