diff --git a/srcpkgs/wlmaker/patches/musl-fts-link.patch b/srcpkgs/wlmaker/patches/musl-fts-link.patch new file mode 100644 index 00000000000000..2f13673bb72c7e --- /dev/null +++ b/srcpkgs/wlmaker/patches/musl-fts-link.patch @@ -0,0 +1,15 @@ +--- a/submodules/libbase/src/CMakeLists.txt ++++ b/submodules/libbase/src/CMakeLists.txt +@@ -70,6 +70,12 @@ target_include_directories( + $) + target_include_directories(libbase PRIVATE "${CURSES_INCLUDE_DIRS}") + target_link_libraries(libbase PRIVATE "${CURSES_LIBRARIES}" libbase_compiler_flags) ++ ++# musl's fts(3) lives in a separate libfts (musl-fts); link it explicitly. ++find_library(FTS_LIBRARY NAMES fts) ++if(FTS_LIBRARY) ++ target_link_libraries(libbase PUBLIC ${FTS_LIBRARY}) ++endif() + set_target_properties( + libbase PROPERTIES + VERSION 1.0 diff --git a/srcpkgs/wlmaker/template b/srcpkgs/wlmaker/template new file mode 100644 index 00000000000000..837d6e82285b56 --- /dev/null +++ b/srcpkgs/wlmaker/template @@ -0,0 +1,31 @@ +# Template file for 'wlmaker' +pkgname=wlmaker +version=0.8.1 +revision=1 +build_style=cmake +configure_args="-Dconfig_DEBUG=OFF -Dconfig_OPTIM=ON" +hostmakedepends="pkg-config flex bison wayland-devel wayland-protocols" +makedepends="cairo-devel libxkbcommon-devel libxdg-basedir-devel + wlroots0.20-devel ncurses-devel wayland-devel libxcb-devel" +depends="foot brightnessctl swaylock wdisplays xorg-server-xwayland" +short_desc="Wayland compositor inspired by WindowMaker" +maintainer="Fabian Constantinescu " +license="Apache-2.0" +homepage="https://github.com/phkaeser/wlmaker" +distfiles="https://github.com/phkaeser/wlmaker/releases/download/v${version}/wlmaker-${version}.tar.gz" +checksum=aa7c23b6ea501df412101aaaa022576f05eefa56bdde33c0f6eb6d34aa5a2389 + +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + makedepends+=" musl-fts-devel" +fi + +do_check() { + cd build + ctest --output-on-failure -E backend_test +} + +post_install() { + # Example configs not installed by the build itself + vinstall etc/ExampleConfig.plist 644 usr/share/doc/${pkgname} + vinstall etc/HomeConfig.plist 644 usr/share/doc/${pkgname} +}