blob: d7aecf5ee903cc79f1fe147742a56fa9195deb67 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Maintainer:
## options
: ${_build_git:=true}
unset _pkgtype
[[ "${_build_git::1}" == "t" ]] && _pkgtype+="-git"
## basic info
_pkgname="xwayland-run"
pkgname="$_pkgname${_pkgtype:-}"
pkgver=0.0.2.r7.g8d30fc5
pkgrel=1
pkgdesc="Utilities to run headless X/Wayland clients"
url="https://gitlab.freedesktop.org/ofourdan/xwayland-run"
license=('GPL-2.0-or-later')
arch=(x86_64)
depends=(
python
)
makedepends=(
git
meson
)
optdepends=(
'cage: Wayland compositor (no headless)'
'kwin: Wayland compositor'
'mutter: Wayland compositor'
'weston: Wayland compositor'
'xorg-xwayland: X11 server'
)
provides=(
"wlheadless-run=${pkgver%%.r*}"
"xwfb-run=${pkgver%%.r*}"
)
conflicts=(
'wlheadless-run'
'xwfb-run'
)
if [[ "${_build_git::1}" == "t" ]] ; then
provides+=("xwayland-run=${pkgver%%.r*}")
conflicts+=('xwayland-run')
fi
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 --exclude='*[a-zA-Z][a-zA-Z]*' \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
arch-meson "$_pkgsrc" build
meson compile -C build
}
package() {
meson install -C build --destdir "$pkgdir"
}
|