mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
this is a million times faster new only in rust 1.68, and fails on older versions, but we have only latest in aports and don't support anything else, so it's okay.
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Contributor: Maxim Karasev <begs@disroot.org>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=i3status-rust
|
|
pkgver=0.30.4
|
|
pkgrel=0
|
|
pkgdesc="i3status replacement in Rust"
|
|
url="https://github.com/greshake/i3status-rust"
|
|
arch="all !s390x !riscv64" # limited by cargo
|
|
license="GPL-3.0-only"
|
|
makedepends="
|
|
cargo
|
|
curl-dev
|
|
dbus-dev
|
|
lm-sensors-dev
|
|
notmuch-dev
|
|
openssl-dev>3
|
|
pulseaudio-dev
|
|
"
|
|
options="net"
|
|
provides="i3status-rs=$pkgver-r$pkgrel"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/greshake/i3status-rust/archive/refs/tags/v$pkgver/i3status-rust-v$pkgver.tar.gz"
|
|
|
|
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
check() {
|
|
cargo test --all-features
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/i3status-rs -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 man/i3status-rs.1 -t "$pkgdir"/usr/share/man/man1/
|
|
|
|
install -Dm644 files/themes/* -t "$pkgdir"/usr/share/i3status-rust/themes/
|
|
install -Dm644 files/icons/* -t "$pkgdir"/usr/share/i3status-rust/icons/
|
|
}
|
|
|
|
sha512sums="
|
|
8fefd2b43b5fefcc302a0a66a1c4fc23ef0ad48be01a0d1cf1d04ec74f074fe8fb01e7f870f3bb97d6d780e18e073f8aa0a4004b15a7d683792ca267cc8b8cb9 i3status-rust-v0.30.4.tar.gz
|
|
"
|