diff options
Diffstat (limited to 'user/xwayland')
-rw-r--r-- | user/xwayland/APKBUILD | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/user/xwayland/APKBUILD b/user/xwayland/APKBUILD new file mode 100644 index 000000000..1b2959de2 --- /dev/null +++ b/user/xwayland/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Łukasz Jendrysik <scadu@yandex.com> +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Contributor: Simon Zeni <simon@bl4ckb0ne.ca> +# Maintainer: Ermine <mustela@erminea.space> +pkgname=xwayland +pkgver=24.1.6 +pkgrel=0 +pkgdesc="X11 server for Wayland" +url="https://www.X.Org/" +arch="all" +options="!check" # requires piglit, which has no stable releases +license="MIT AND X11" +subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc" +depends="xorg-server-protocol xkbcomp" +depends_dev="dbus-dev font-util-dev libdrm-dev libepoxy-dev libglvnd-dev + libxcvt-dev libxfont2-dev libxkbfile-dev libxshmfence-dev mesa-dev + openssl-dev pixman-dev wayland-dev wayland-protocols xorgproto xtrans" +makedepends="$depends_dev meson" +source="https://xorg.freedesktop.org/archive/individual/xserver/xwayland-$pkgver.tar.xz" + +replaces="xorg-server-xwayland" + +build() { + meson setup \ + -Dprefix=/usr \ + -Dipv6=true \ + -Dxvfb=false \ + -Dxdmcp=false \ + -Dxcsecurity=true \ + -Ddri3=true \ + -Dglamor=true \ + -Dsecure-rpc=false \ + -Dxkb_dir=/usr/share/X11/xkb \ + -Dxkb_output_dir=/var/lib/xkb \ + . output + meson compile -C output +} + +check() { + meson test --no-rebuild --print-errorlogs -C output +} + +package() { + DESTDIR="$pkgdir" meson install --no-rebuild -C output + + # Part of xorg-server-doc + rm -f "$pkgdir"/usr/share/man/man1/Xserver.1 + + # Part of xorg-server-protocol + rm -f "$pkgdir"/usr/lib/xorg/protocol.txt +} + +sha512sums="b6dcc87f5c4d880cb23216518171a704c2a501803ac2efd9d01760895d755a617cd82313c6516f27a888b0581c64d74e3f8db5c238e1ae0d13da6cc1a547c02f xwayland-24.1.6.tar.xz" |