From c509ca1353cd3caa73f436fa1ab568565a6328bf Mon Sep 17 00:00:00 2001 From: Jay Lanagan Date: Fri, 23 Jan 2026 13:00:46 -0500 Subject: labwc: make xorg-xwayland optional --- REPO | 4 ++-- labwc/.signature | 4 ++-- labwc/Pkgfile | 41 ++++++++++++++++++++++------------------- 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/REPO b/REPO index 4d8bfdc..7196bd0 100644 --- a/REPO +++ b/REPO @@ -113,9 +113,9 @@ f:daeb771d99c2d262e90d53522f68e917:libnfs/.signature f:9f7b8a240820a819eda47ad2c3bc2094:libnfs/Pkgfile f:7fa39478efef9883b444b3ed28456b01:libnfs/.footprint f:04bab67cdf9cd2d4daa4411bb7d77c42:labwc/post-install -f:f19cd2098441044c82d5d82a844fd17a:labwc/.signature +f:b8ff657b57980416f3790937e72a97f3:labwc/.signature f:ce7ff115dc129488c59234541d07531e:labwc/README -f:505aa3d9ef8cb55caf898bdfe6da85f7:labwc/Pkgfile +f:245434b67b9beaf75235c147d2b70fa7:labwc/Pkgfile f:8b9eb7d51c6d76455c4d2776af5b20d7:labwc/.footprint f:b753c4d39a9466a4d8c7bc526d62ef2f:libsfdo/.signature f:dc1cc7aa7fc852f11092a0226e53c760:libsfdo/Pkgfile diff --git a/labwc/.signature b/labwc/.signature index 4f940da..8bcd46a 100644 --- a/labwc/.signature +++ b/labwc/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/xfce4.pub -RWRSAbUnL7azFKPtJoSUDMlFPOxD/8MS05eEeo+ShVjRfjcAkFHObhhAc87YnVGNqazEPu/1+lJHw4CkG8G3IKGTmwWf0z0WLAc= -SHA256 (Pkgfile) = 93288af75798f536382cfe0ecf47347b7b51e04752150e400bd6b462a2e959dd +RWRSAbUnL7azFCtv9hNaDJ4ZAIuzgTy6KA+z6/OPc0cdQoRjvhyq6NpCqxcw7Pvt7QnsWewjCHoka192oPW88txn4BTDTlexWQQ= +SHA256 (Pkgfile) = c815b9c798df085d4b77e04720b504bce9d969f0e311c2a8d7f6ad10be195b3a SHA256 (.footprint) = 889b341c1819724a767dbfc18631d7a4b172d3e0af84fa44e89f029b681a4af6 SHA256 (labwc-0.9.3.tar.gz) = 38d273faa4e021b9f99e1bf1a5f4bf881cc6a592e00c7b3426b37c0a0b67d126 diff --git a/labwc/Pkgfile b/labwc/Pkgfile index 3aecda2..7fff2e4 100644 --- a/labwc/Pkgfile +++ b/labwc/Pkgfile @@ -1,7 +1,8 @@ # Description: A Wayland window-stacking compositor # URL: https://github.com/labwc/labwc # Maintainer: Jay Lanagan, j at lngn dot net -# Depends on: librsvg libsfdo wlroots xorg-xwayland scdoc +# Depends on: librsvg libsfdo wlroots scdoc +# Optional: xorg-wayland name=labwc version=0.9.3 @@ -10,24 +11,26 @@ source=(https://github.com/labwc/labwc/archive/$version/$name-$version.tar.gz) build() { - meson setup $name-$version build \ - --buildtype=release \ - --infodir=/usr/info \ - --libdir=/usr/lib \ - --localstatedir=/var \ - --prefix=/usr \ - --sysconfdir=/etc \ - -Dstrip=true \ - -Dxwayland=enabled \ - -Dnls=disabled \ - -Db_lto=true \ - -Db_pie=true + prt-get isinst xorg-xwayland && PKGMK_LABWC+='-Dxwayland=enabled ' || PKGMK_LABWC+=' -Dxwayland=disabled ' - meson compile -C build - DESTDIR=$PKG meson install -C build + meson setup $name-$version build $PKGMK_LABWC \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib \ + --localstatedir=/var \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dstrip=true \ + -Dnls=disabled \ + -Db_lto=true \ + -Db_pie=true + + meson compile -C build + DESTDIR=$PKG meson install -C build + + mkdir $PKG/usr/share/labwc + mv $PKG/usr/share/doc/* $PKG/usr/share + rm $PKG/usr/share/labwc/README + rmdir $PKG/usr/share/doc - mkdir $PKG/usr/share/labwc - mv $PKG/usr/share/doc/* $PKG/usr/share - rm $PKG/usr/share/labwc/README - rmdir $PKG/usr/share/doc } -- cgit v1.3-3-ga95d