summaryrefslogtreecommitdiffstats
path: root/x11-xwayland/MAKEPKG
blob: a6f819ceae3f6aebea679708caaa0890ae324f03 (plain) (blame)
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
#!/bin/mkpkg
# description: X server for Wayland compatibility
# url: https://wayland.freedesktop.org/

name=x11-xwayland
version=24.1.9
release=1
depends=(wayland nettle libxfont2 libxres libxshmfence 
         libxtst libpixman xkbcomp)
makedeps=(meson)
source=(https://xorg.freedesktop.org/releases/individual/xserver/xwayland-$version.tar.xz
        2113.patch)

patch() {
    cd xwayland-$version
    patch -p1 -i $SRC/2113.patch
}

build() {
    meson setup xwayland-$version build \
        --prefix=/usr \
        --buildtype=plain \
        -D xkb_dir=/usr/share/X11/xkb \
        -D xkb_output_dir=/var/lib/xkb
    
    meson compile -C build
    DESTDIR=$PKG meson install -C build
    
    rm -f $PKG/usr/lib/xorg/protocol.txt
    rm -f $PKG/usr/share/man/man1/Xserver.1
}

# vim: filetype=sh