summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14405abbbbb052c9487174274555bab01cdc8e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Daniel M. Capella <polyzen@archlinux.info>
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>

_commit=b16a2c2b5b137f538f0992cd5553c83955257a3a
pkgname=i3status-rust
pkgver=0.9.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=('dbus' 'i3-wm')
makedepends=('rust')
optdepends=('alsa-utils: for the volume block'
            'lm_sensors: for the temperature block'
            'powerline-fonts: for all themes using the Powerline arrow char'
            'speedtest-cli: for the speedtest block'
            'ttf-font-awesome: for the Awesome icons')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz")
sha512sums=('0c5d62325d822b87d65e3b1b8c963f2ff0117b63c0bc2c0adc48575344bebbad2ce10b4d9ff308dcab263682123cfa29e6a22610cbd8b9842896bc4ea18a2f53')

build() {
  cd $pkgname-$_commit
  cargo build --release
}

package() {
  cd $pkgname-$_commit
  install -Dm755 target/release/i3status-rs "$pkgdir"/usr/bin/i3status-rs
  install -Dm644 example_config.toml "$pkgdir"/usr/share/doc/$pkgname/examples/example_config.toml
  install -Dm644 example_icon.toml "$pkgdir"/usr/share/doc/$pkgname/examples/example_icon.toml
  install -Dm644 example_theme.toml "$pkgdir"/usr/share/doc/$pkgname/examples/example_theme.toml
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et: