i3status-rust-git/PKGBUILD

57 lines
1.9 KiB
Bash
Raw Permalink Normal View History

2021-03-30 15:15:58 +02:00
# Maintainer: Jason Nader <jason.nader@protonmail.com>
2017-07-13 20:06:36 +02:00
pkgname=i3status-rust-git
2021-03-30 15:15:58 +02:00
pkgver=0.20.0.r1950.g1efa069
2021-05-11 14:33:42 +02:00
pkgrel=2
2018-01-08 14:48:56 +01:00
pkgdesc='Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust'
2018-01-08 13:48:48 +01:00
arch=('x86_64')
2017-07-13 20:06:36 +02:00
url='https://github.com/greshake/i3status-rust'
license=('GPL3')
2022-04-19 17:36:32 +02:00
depends=('libpulse' 'lm_sensors')
2018-01-08 14:48:56 +01:00
makedepends=('git' 'rust')
optdepends=('alsa-utils: for the volume block'
'bluez: for the bluetooth block'
'curl: for the weather block'
'fakeroot: for the pacman block to show pending updates'
'ibus: for the ibus block'
'kdeconnect: for the kdeconnect block'
'networkmanager: for the networkmanager block'
'powerline-fonts: for all themes using the powerline arrow char'
'pulseaudio: for the volume block'
'speedtest-cli: for the speedtest block'
'ttf-font-awesome-4: for the awesome icons'
'upower: for the battery block')
2017-07-13 20:06:36 +02:00
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
install="${pkgname%-*}.install"
source=("${pkgname%-*}::git+$url")
2017-07-13 20:06:36 +02:00
sha1sums=('SKIP')
pkgver() {
cd "${pkgname%-*}"
echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --always)
}
build() {
cd "${pkgname%-*}"
cargo build --release --features "pulseaudio"
2017-07-13 20:06:36 +02:00
}
package() {
cd "${pkgname%-*}"
install -Dm755 target/release/i3status-rs "$pkgdir/usr/bin/i3status-rs"
2020-02-11 13:39:00 +01:00
install -Dm644 man/i3status-rs.1 -t "$pkgdir/usr/share/man/man1"
2021-03-30 15:15:58 +02:00
for icon_set in files/icons/*.toml; do
install -Dm644 "$icon_set" -t "$pkgdir/usr/share/${pkgname%-*}/icons"
done
for theme in files/themes/*.toml; do
install -Dm644 "$theme" -t "$pkgdir/usr/share/${pkgname%-*}/themes"
done
2021-05-11 14:33:42 +02:00
for example_config in examples/*.toml; do
2021-03-30 15:15:58 +02:00
install -Dm644 "$example_config" -t "$pkgdir/usr/share/doc/${pkgname%-*}/examples"
2020-02-11 13:39:00 +01:00
done
2017-07-13 20:06:36 +02:00
}