diff options
| author | Jay Lanagan <j@lngn.net> | 2026-01-23 13:00:46 -0500 |
|---|---|---|
| committer | Jay Lanagan <j@lngn.net> | 2026-01-23 13:00:46 -0500 |
| commit | c509ca1353cd3caa73f436fa1ab568565a6328bf (patch) | |
| tree | d9edb05cfe5d18f254383c86a318c939c6b5d42d /labwc/Pkgfile | |
| parent | 3008f35ac0ce90b2c12278e5bad8e15303fb9d5d (diff) | |
| download | crux-xfce4-c509ca1353cd3caa73f436fa1ab568565a6328bf.tar.gz crux-xfce4-c509ca1353cd3caa73f436fa1ab568565a6328bf.zip | |
labwc: make xorg-xwayland optional
Diffstat (limited to 'labwc/Pkgfile')
| -rw-r--r-- | labwc/Pkgfile | 41 |
1 files changed, 22 insertions, 19 deletions
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 } |
