summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6999850110c941cbbff1e4a6dbdfa5d9bfe3785 (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=xisxwayland
pkgname=$_pkgname-git
pkgver=1+3.g7e175ea9cc
pkgrel=1
pkgdesc="Tool to determine whether the X server in use is Xwayland"
url="https://gitlab.freedesktop.org/xorg/app/xisxwayland"
arch=(x86_64)
license=(MIT)
makedepends=(meson ninja)
depends=(libx11 libxrandr)
source=("git+$url")
sha256sums=('SKIP')
conflicts=($_pkgname)
provides=($_pkgname=${pkgver%+*})

pkgver() {
  git -C $_pkgname describe --abbrev=10 | sed 's/^xisxwayland-//; s/-/+/; s/-/./'
}

build() {
  arch-meson $_pkgname build
  ninja -C build
}

check() {
  ninja -C build test
}

package() {
  DESTDIR="$pkgdir" ninja -C build install
}