-
Notifications
You must be signed in to change notification settings - Fork 16
/
PKGBUILD
46 lines (39 loc) · 1.22 KB
/
PKGBUILD
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
pkgname=xwayland
pkgver=24.1.0
pkgrel=1
pkgdesc="X.Org X servers for Wayland"
arch=('x86_64')
url="https://xorg.freedesktop.org"
license=('GPL2')
depends=('xorg-server' 'wayland-protocols')
makedepends=('libx11' 'xtrans' 'libxkbfile' 'libxmu' 'libxtst' 'libxres' 'valgrind' 'meson' 'ninja')
options=('!libtool')
groups=('xorg')
# https://gitlab.freedesktop.org/xorg/xserver/-/tree/xwayland-21.1
source=("https://xorg.freedesktop.org/archive/individual/xserver/${pkgname}-${pkgver}.tar.xz")
sha256sums=('bef21c4f18807a4ed571c4e2df60ab63b5466bbd502ecceb2485b892ab76dcc2')
build() {
mkdir -p build
cd build
meson setup ../${pkgname}-${pkgver} \
--prefix=/usr \
--buildtype=release \
-Dglamor=true \
-Dxvfb=false \
-Dipv6=true \
-Dxdmcp=false \
-Dxcsecurity=true \
-Ddri3=true \
-Dxkb_dir=/usr/share/X11/xkb \
-Dxkb_output_dir=/var/lib/xkb
ninja
}
package() {
cd build
DESTDIR=${pkgdir} ninja install
install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ../${pkgname}-${pkgver}/COPYING ${pkgdir}/usr/share/licenses/${pkgname}/
# part of xorg-server, keep conflicting files there
rm ${pkgdir}/usr/share/man/man1/Xserver.1
rm ${pkgdir}/usr/lib/xorg/protocol.txt
}