cruxports/labwc/Pkgfile

31 lines
884 B
Plaintext
Raw Permalink Normal View History

2022-12-28 14:02:52 +00:00
# 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
2022-12-28 14:02:52 +00:00
name=labwc
2024-03-26 13:04:47 +00:00
version=0.7.1
2022-12-28 14:02:52 +00:00
release=1
2023-08-19 20:05:53 +00:00
source=(https://github.com/$name/$name/archive/$version/$name-$version.tar.gz)
2022-12-28 14:02:52 +00:00
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)
2022-12-28 14:02:52 +00:00
cd $name-$version
2023-09-29 15:18:16 +00:00
mkdir -p bld
meson setup bld ${PKGMK_LABWC[@]}
2023-02-11 01:54:34 +00:00
2023-09-29 15:18:16 +00:00
ninja -C bld -j ${JOBS:-1}
DESTDIR=$PKG ninja -C bld install
2023-02-11 01:54:34 +00:00
2023-09-29 15:18:16 +00:00
rm -rf $PKG/usr/share/locale
find $PKG/usr/share/doc -name README -delete
2022-12-28 14:02:52 +00:00
}