From c08203fb921db9983c0c4db5543aecb5c4a621ec Mon Sep 17 00:00:00 2001 From: lz-coder Date: Thu, 9 Feb 2023 13:26:41 -0300 Subject: [PATCH] New package: dwl-0.4 --- srcpkgs/dwl/patches/xwayland.patch | 10 ++++++++++ srcpkgs/dwl/template | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 srcpkgs/dwl/patches/xwayland.patch create mode 100644 srcpkgs/dwl/template diff --git a/srcpkgs/dwl/patches/xwayland.patch b/srcpkgs/dwl/patches/xwayland.patch new file mode 100644 index 000000000000..84c5afac0d24 --- /dev/null +++ b/srcpkgs/dwl/patches/xwayland.patch @@ -0,0 +1,10 @@ +--- a/config.mk ++++ b/config.mk +@@ -10,5 +10,5 @@ + XWAYLAND = + XLIBS = + # Uncomment to build XWayland support +-#XWAYLAND = -DXWAYLAND +-#XLIBS = xcb xcb-icccm ++XWAYLAND = -DXWAYLAND ++XLIBS = xcb xcb-icccm diff --git a/srcpkgs/dwl/template b/srcpkgs/dwl/template new file mode 100644 index 000000000000..3a13280201e5 --- /dev/null +++ b/srcpkgs/dwl/template @@ -0,0 +1,28 @@ +# Template file for 'dwl' +pkgname=dwl +version=0.4 +revision=1 +#archs="i686 x86_64" +#build_wrksrc= +build_style=gnu-makefile +#configure_args="" +#make_build_args="" +#make_install_args="" +#conf_files="" +#make_dirs="/var/log/dir 0755 root root" +hostmakedepends="wayland-protocols xorg-server-xwayland pkg-config" +makedepends="wlroots-devel" +#depends="" +short_desc="Compact and hackable compositor for Wayland based on wlroots" +maintainer="lz-coder " +license="GPL-3.0-or-later" +homepage="https://github.com/djpohly/dwl" +#changelog="" +distfiles="https://github.com/djpohly/dwl/releases/download/v${version}/${pkgname}-v${version}.tar.gz" +checksum=1379222f8bc4d2279a49fffc8292727e976893f6bb348f3aad0581406d827ee4 + +pre_build() { + if [ -e ${FILESDIR} ]; then + [ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h + fi +}