diff options
author | Jason Nader | 2024-01-27 18:20:27 +0900 |
---|---|---|
committer | Jason Nader | 2024-01-27 18:21:23 +0900 |
commit | 94ec0d21947f4a833205288678b330d8a4463807 (patch) | |
tree | ccef5872ea514ff1d8ac2a32d30538b0e407b022 | |
parent | 55ee6cb4f53def6642a50b05e01c60150ced4311 (diff) | |
download | aur-94ec0d21947f4a833205288678b330d8a4463807.tar.gz |
Rewrite based on non-git version in community
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 14 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = i3status-rust-git pkgdesc = Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust - pkgver = 0.30.5.r3204.gffc645a1 + pkgver = 0.32.3.r3432.g4a048bb1 pkgrel = 1 url = https://github.com/greshake/i3status-rust install = i3status-rust.install @@ -2,7 +2,7 @@ # Contributor: Bryan Malyn <bim9262@gmail.com> pkgname=i3status-rust-git -pkgver=0.30.5.r3204.gffc645a1 +pkgver=0.32.3.r3432.g4a048bb1 pkgrel=1 pkgdesc='Very resourcefriendly and feature-rich replacement for i3status to use with bar programs (like i3bar and swaybar), written in pure Rust' arch=('x86_64') @@ -30,26 +30,33 @@ pkgver() { echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --always) } +prepare() { + cd "${pkgname%-*}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + build() { cd "${pkgname%-*}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target cargo build --release --features 'pulseaudio maildir' cargo xtask generate-manpage } package() { cd "${pkgname%-*}" - install -Dm755 target/release/i3status-rs "$pkgdir/usr/bin/i3status-rs" - install -Dm644 man/i3status-rs.1 -t "$pkgdir/usr/share/man/man1" + install -Dm755 -t "${pkgdir}"/usr/bin target/release/i3status-rs + install -Dm644 -t "${pkgdir}"/usr/share/man/man1 man/i3status-rs.1 for icon_set in files/icons/*.toml; do - install -Dm644 "$icon_set" -t "$pkgdir/usr/share/${pkgname%-*}/icons" + install -Dm644 -t "${pkgdir}"/usr/share/${pkgname}/icons "${icon}" done for theme in files/themes/*.toml; do - install -Dm644 "$theme" -t "$pkgdir/usr/share/${pkgname%-*}/themes" + install -Dm644 -t "${pkgdir}"/usr/share/${pkgname}/themes "${theme}" done for example_config in examples/*.toml; do - install -Dm644 "$example_config" -t "$pkgdir/usr/share/doc/${pkgname%-*}/examples" + install -Dm644 -t "${pkgdir}"/usr/share/doc/${pkgname}/examples/ ${example} done } |