mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
this does not download deps that won't be used for the default build target (the ctarget we are building for implicitly). this makes quite a few fetches faster.. because a ton of crates download a 10mb "windows-sys" that is never used, amongst other things. maybe breaks a thing or two.
44 lines
1.2 KiB
Text
44 lines
1.2 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.22.0
|
|
pkgrel=1
|
|
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
|
|
openssl-dev>3
|
|
pulseaudio-dev
|
|
"
|
|
options="net !check" # no tests
|
|
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"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo build --release --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/i3status-rs "$pkgdir"/usr/bin/i3status-rs
|
|
|
|
install -Dm644 man/i3status-rs.1 "$pkgdir"/usr/share/man/man1/i3status-rs.1
|
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/i3status-rust/themes files/themes/*
|
|
install -Dm644 -t "$pkgdir"/usr/share/i3status-rust/icons files/icons/*
|
|
}
|
|
|
|
sha512sums="
|
|
1b534775e3e86aa6b9ae1168a8be96af121aa1061372d706c12d770f8f5367b8193f323adadff0b3eb15e9087b5e05dcf2c3b267f113da013e9f4722ff427ae1 i3status-rust-v0.22.0.tar.gz
|
|
"
|