summaryrefslogtreecommitdiffstats
path: root/x11-xwayland/MAKEPKG
blob: 02eb2e75f7a4040fcd261a27b6c8b7d687a7df57 (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
34
35
36
37
38
#!/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
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh