Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions srcpkgs/wlmaker/patches/musl-fts-link.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- a/submodules/libbase/src/CMakeLists.txt
+++ b/submodules/libbase/src/CMakeLists.txt
@@ -70,6 +70,12 @@ target_include_directories(
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>)
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
31 changes: 31 additions & 0 deletions srcpkgs/wlmaker/template
Original file line number Diff line number Diff line change
@@ -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 <fabian.constantinescu@protonmail.com>"
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}
}