cruxports/labwc/Pkgfile

31 lines
884 B
Plaintext
Raw Normal View History

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