summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b120a69b69a22258cbaf6bb214619e321125b27d (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
# Maintainer: varsity <varsity@duck.com>
pkgname=hybrid-bar-git
pkgver=0.4.9
pkgrel=1
makedepends=('rust' 'cargo' 'git' 'wget')
depends=('gtk3' 'gtk-layer-shell')
url="https://github.com/vars1ty/HybridBar"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
pkgdesc="A status bar focused on wlroots Wayland compositors"
license=('MIT')

# Generated in accordance to https://wiki.archlinux.org/title/Rust_package_guidelines.
# Might require further modification depending on the package involved.
prepare() {
  git clone https://github.com/vars1ty/HybridBar .
  cargo fetch --target "$CARCH-unknown-linux-gnu"
}

build() {
  export RUSTUP_TOOLCHAIN=stable
  export CARGO_TARGET_DIR=target
  cargo build --frozen --release --all-features
}

check() {
  export RUSTUP_TOOLCHAIN=stable
  cargo test --frozen --all-features
}

package() {
  mkdir -p ~/.config/HybridBar/
  wget https://raw.githubusercontent.com/vars1ty/HybridBar/main/examples/config.json -P ~/.config/HybridBar/
  install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/hybrid-bar"
}