cruxports/labwc/Pkgfile

31 lines
884 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 scdoc
name=labwc
version=0.6.6
release=1
source=(https://github.com/$name/$name/archive/$version/$name-$version.tar.gz)
build() {
PKGMK_LABWC=(--prefix=/usr
--wrap-mode=nodownload
-Db_pie=true
-Db_lto=true)
prt-get isinst xorg-xwayland || PKGMK_LABWC+=(-Dxwayland=disabled)
prt-get isinst scdoc && PKGMK_LABWC+=(-Dman-pages=enabled) \
|| PKGMK_LABWC+=(-Dman-pages=disabled)
cd $name-$version
mkdir -p bld
meson setup bld ${PKGMK_LABWC[@]}
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
}