1
0
forked from ports/contrib

i3status-rust: 0.14.5 -> 0.14.6

This commit is contained in:
Tim Biermann 2021-02-14 15:11:48 +00:00
parent 5c017cc2ba
commit c5e32ea885
Signed by untrusted user: tb
GPG Key ID: 42F8B4E30B673606
2 changed files with 15 additions and 14 deletions

View File

@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3zcEs/+AoVYOWYsp2Xy24KtVYQ/GzYs6bvbak4cCXP8JQr49tNn+lXseqNMDg+JqTBhQbiLyBVsQHMbYkrSLfQ0=
SHA256 (Pkgfile) = 7795fdd178341e00bb91eaec0a1b64b7bd0269694ab8e532b62761a6dcb33477
RWSagIOpLGJF380fFZgoREIWcM5hH2M2rL/qpW6cxI7MOwwuodqzDuacHvfvIBs61hxyGnTTjYKg4YcEAYnvTP4EyAYdvjty4gg=
SHA256 (Pkgfile) = 0e671506502fda4b770452ba0a00b93d7a1553852a6637dbdc33d3beb9409f5d
SHA256 (.footprint) = 46e38c743630719fc5db8383d793d119a83726afb7568114366b2b9c2d3ed80b
SHA256 (i3status-rust-0.14.5-01.tar.gz) = 027c8e6d6f13a469b71feba70719de4fd689be5c45a66a2deaaf740003c3df7e
SHA256 (i3status-rust-0.14.6-01.tar.gz) = 2fffd44d60c8e016f30e0f107cde9cceb0a89f6c784a2929e2cae832162923c5

View File

@ -5,25 +5,26 @@
# Optional: notmuch pulseaudio
name=i3status-rust
version=0.14.5
release=2
version=0.14.6
release=1
source=(https://github.com/greshake/i3status-rust/archive/v$version/$name-$version-01.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"
# configure optional dependencies
[[ -e /usr/lib/libnotmuch.so ]] && PKGMK_I3STATUS_RUST+=' notmuch'
[[ -e /usr/lib/pkgconfig/libpulse.pc ]] && 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 --manifest-path $name-$version/Cargo.toml
cargo fetch --manifest-path $name-$version/Cargo.toml --locked
cargo update
cargo fetch
[[ -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
&& cargo build --manifest-path $name-$version/Cargo.toml --release --features "$PKGMK_I3STATUS_RUST" \
|| cargo build --manifest-path $name-$version/Cargo.toml --release --no-default-features
install -Dt $PKG/usr/bin $name-$version/target/release/i3status-rs
}