cruxports/cagebreak/Pkgfile

26 lines
741 B
Plaintext

# Description: tiling wayland window manager similar to ratpoison
# URL: https://github.com/project-repo/cagebreak/
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: wlroots libxkbcommon
# Optional: scdoc xorg-xwayland
name=cagebreak
version=2.3.1
release=1
source=(https://github.com/project-repo/$name/archive/$version/$name-$version.tar.gz)
build() {
PKGMK_OPTS="--prefix=/usr --buildtype=release -Db_lto=true -Db_pie=true"
prt-get isinst xorg-xwayland && PKGMK_OPTS+=" -Dxwayland=true"
prt-get isinst scdoc && PKGMK_OPTS+=" -Dman-pages=true"
cd $name-$version
mkdir -p bld
meson setup bld $PKGMK_OPTS
ninja -C bld -j ${JOBS:-1}
DESTDIR=$PKG ninja -C bld install
rm -rf $PKG/usr/share/licenses
}