summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c36d8493764edf18a73b6cb5b92895fe9d04fdc (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
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>

pkgname=greetd-wlgreet-git
pkgver=0.4
pkgrel=1
pkgdesc="Wayland greeter for greetd"
arch=(x86_64)
url="https://git.sr.ht/~kennylevinsen/wlgreet"
license=(MIT)
source=("git+$url")
sha256sums=('SKIP')
conflicts=(greetd-wlgreet)
provides=(greetd-wlgreet=${pkgver%+*})
makedepends=(git rust)

pkgver() {
  git -C wlgreet describe --tags --abbrev=10 | sed 's/-/+/; s/-/./'
}

build() {
  cd wlgreet
  cargo build --release
}

check() {
  cd wlgreet
  cargo test --release
}

package() {
  install -d "$pkgdir"/usr/bin
  install -m755 wlgreet/target/release/wlgreet "$pkgdir"/usr/bin/
}