summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1189fe6dd186d39a0842a3da7cc28642a1785fe2 (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=2
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
}