Date: Sunday, May 9, 2021 @ 15:54:47 Author: freswa Revision: 929349 archrelease: copy trunk to community-testing-x86_64
Added: i3status-rust/repos/community-testing-x86_64/ i3status-rust/repos/community-testing-x86_64/PKGBUILD (from rev 929348, i3status-rust/trunk/PKGBUILD) ----------+ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) Copied: i3status-rust/repos/community-testing-x86_64/PKGBUILD (from rev 929348, i3status-rust/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-05-09 15:54:47 UTC (rev 929349) @@ -0,0 +1,52 @@ +# Maintainer: Frederik Schwan <freswa at archlinux dot org> +# Contributor: Daniel M. Capella <poly...@archlinux.org> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> + +pkgname=i3status-rust +pkgver=0.20.0 +pkgrel=1 +pkgdesc='Resourcefriendly and feature-rich replacement for i3status, written in pure Rust' +arch=('x86_64') +url='https://github.com/greshake/i3status-rust' +license=('GPL3') +depends=('libpulse') +makedepends=('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' + 'iw: display wifi signal strength in net block' + 'kdeconnect: for the kdeconnect block' + 'lm_sensors: for the temperature 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: for the awesome icons' + 'upower: for the battery block') +source=("https://github.com/greshake/i3status-rust/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") +b2sums=('f822f145b155845c2b14e638bc12206cd118b6740b1faae4a951c057cf8b34b6da5c02271a614a5f8e54482999a1378587ed7f8784b31e3d4b669d4013d2d1af') + +build() { + cd ${pkgname}-${pkgver} + cargo build --release --locked +} + +package() { + cd ${pkgname}-${pkgver} + install -Dm755 -t "${pkgdir}"/usr/bin target/release/i3status-rs + install -Dm644 -t "${pkgdir}"/usr/share/man/man1 man/i3status-rs.1 + + for icon in files/icons/*.toml; do + install -Dm644 -t "${pkgdir}"/usr/share/${pkgname}/icons "${icon}" + done + + for theme in files/themes/*.toml; do + install -Dm644 -t "${pkgdir}"/usr/share/${pkgname}/themes "${theme}" + done + + for example in example/*.toml; do + install -Dm644 -t "${pkgdir}"/usr/share/doc/${pkgname}/examples/ ${example} + done +}