cruxports/labwc/Pkgfile

30 lines
741 B
Plaintext

# Description: stacking wayland window manager, supporting openbox themes
# URL: https://github.com/labwc/labwc/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: wlroots pango
# Optional: xorg-xwayland
name=labwc
version=0.6.2
release=1
source=(https://github.com/$name/$name/archive/refs/tags/$version.tar.gz)
renames=($name-$version.tar.gz)
build() {
prt-get isinst xorg-xwayland || PKGMK_LABWC="-D xwayland=disabled"
cd $name-*
mkdir -p bld
meson setup bld --prefix=/usr $PKGMK_LABWC \
--wrap-mode=nodownload \
-Dman-pages=enabled \
-Db_lto=true \
-Db_pie=true
ninja -C bld -j ${JOBS:-1}
DESTDIR=$PKG ninja -C bld install
rm -rf $PKG/usr/share/locale
find $PKG/usr/share/doc -name README -delete
}