[arch-commits] Commit in (4 files)

Andreas Radke andyrtr at archlinux.org
Thu Dec 10 12:00:34 UTC 2020


    Date: Thursday, December 10, 2020 @ 12:00:33
  Author: andyrtr
Revision: 403232

build xwayland standalone from git master - FS#68916

Added:
  xorg-xwayland/
  xorg-xwayland/repos/
  xorg-xwayland/trunk/
  xorg-xwayland/trunk/PKGBUILD

----------+
 PKGBUILD |   74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)

Added: xorg-xwayland/trunk/PKGBUILD
===================================================================
--- xorg-xwayland/trunk/PKGBUILD	                        (rev 0)
+++ xorg-xwayland/trunk/PKGBUILD	2020-12-10 12:00:33 UTC (rev 403232)
@@ -0,0 +1,74 @@
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+
+pkgname=xorg-xwayland
+_commit=36e353bcf428c4e6a31292ffa749ea6395cba4a3 # xserver-master-branch 2020-12-08
+pkgver=1.20.0.r792.g36e353bcf
+pkgrel=1
+arch=('x86_64')
+license=('custom')
+groups=('xorg')
+url="https://xorg.freedesktop.org"
+pkgdesc="run X clients under wayland"
+depends=('nettle' 'libepoxy' 'systemd-libs' 'libxfont2' 'pixman')
+makedepends=('meson' 'git' 
+             'xorgproto' 'xtrans'
+             'pixman' 'libxkbfile' 'libxfont2' 'dbus'
+             'xorg-font-util'
+             'wayland' 'wayland-protocols'
+             'libdrm' 'libepoxy' 'mesa-libgl'
+             'systemd'
+             'egl-wayland'
+)
+source=("git+https://gitlab.freedesktop.org/xorg/xserver#commit=${_commit}")
+sha256sums=('SKIP')
+provides=('xorg-server-xwayland')
+conflicts=('xorg-server-xwayland')
+replaces=('xorg-server-xwayland')
+
+pkgver() {
+  cd xserver
+  git describe --tags | sed 's/^xorg.server.//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+  # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
+  # With them, module fail to load with undefined symbol.
+  # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
+#  export CFLAGS=${CFLAGS/-fno-plt}
+#  export CXXFLAGS=${CXXFLAGS/-fno-plt}
+#  export LDFLAGS=${LDFLAGS/,-z,now}
+
+  arch-meson xserver build \
+    -D os_vendor="Arch Linux" \
+    -D ipv6=true \
+    -D xvfb=false \
+    -D xnest=false \
+    -D xcsecurity=true \
+    -D xorg=false \
+    -D xephyr=false \
+    -D xwayland=true \
+    -D xwayland_eglstream=true \
+    -D xwin=false \
+    -D xquartz=false \
+    -D glamor=true \
+    -D udev=true \
+    -D systemd_logind=true \
+    -D suid_wrapper=true \
+    -D xkb_dir=/usr/share/X11/xkb \
+    -D xkb_output_dir=/var/lib/xkb
+
+  # Print config
+  meson configure build
+  ninja -C build
+}
+
+package() {
+
+  # bin + manpage
+  install -m755 -Dt "${pkgdir}"/usr/bin/Xwayland  build/hw/xwayland/Xwayland
+  install -m644 -Dt "${pkgdir}"/usr/share/man/man1/Xwayland.1 build/hw/xwayland/Xwayland.1
+
+  # license
+  install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" xserver/COPYING
+}
+



More information about the arch-commits mailing list