diff options
Diffstat (limited to 'wlmaker/MAKEPKG')
| -rw-r--r-- | wlmaker/MAKEPKG | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/wlmaker/MAKEPKG b/wlmaker/MAKEPKG new file mode 100644 index 0000000..ce87b03 --- /dev/null +++ b/wlmaker/MAKEPKG | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | #!/bin/mkpkg | ||
| 2 | # description: Wayland compositor inspired by Window Maker | ||
| 3 | # url: https://github.com/phkaeser/wlmaker | ||
| 4 | |||
| 5 | name=wlmaker | ||
| 6 | version=0.7.1 | ||
| 7 | release=1 | ||
| 8 | depends=(wlroots cairo libxkbcommon libxdg-basedir ncurses) | ||
| 9 | makedeps=(cmake bison flex wayland-protocols) | ||
| 10 | source=(https://github.com/phkaeser/$name/releases/download/v$version/$name-$version.tar.gz | ||
| 11 | no-x11-backend.patch) | ||
| 12 | |||
| 13 | patch() { | ||
| 14 | cd $name-$version | ||
| 15 | |||
| 16 | # Guard X11 backend code for pure Wayland builds | ||
| 17 | patch -p1 -i $SRC/no-x11-backend.patch | ||
| 18 | |||
| 19 | # Fix ELSE/ELSEIF build logic (from AUR) | ||
| 20 | for i in CMakeLists.txt submodules/libbase/CMakeLists.txt; do | ||
| 21 | sed -i 's/^\s*ELSE\s*(config_OPTIM)$/ ELSEIF (config_DEBUG)/' "$i" | ||
| 22 | done | ||
| 23 | } | ||
| 24 | |||
| 25 | sha256sums=( | ||
| 26 | "2dc025300d9e51599c35bf6f4133a14275dce2f7081c7bd04b5eb89ac442e791" | ||
| 27 | "dcc530ef531a6de0eef1e04aced332f5e6e51db08493612ae9c7b947fe6e77eb" | ||
| 28 | ) | ||
| 29 | |||
| 30 | build() { | ||
| 31 | cd $name-$version | ||
| 32 | |||
| 33 | cmake -B build \ | ||
| 34 | -DCMAKE_INSTALL_PREFIX=/ \ | ||
| 35 | -DCMAKE_BUILD_TYPE=Release \ | ||
| 36 | -DCMAKE_C_COMPILER=clang \ | ||
| 37 | -Dconfig_DEBUG=OFF \ | ||
| 38 | -Dconfig_OPTIM=OFF | ||
| 39 | |||
| 40 | cmake --build build | ||
| 41 | DESTDIR=$PKG cmake --install build | ||
| 42 | |||
| 43 | # Remove Debian wrapper | ||
| 44 | rm -f $PKG/usr/bin/wrap-wlmaker.sh | ||
| 45 | |||
| 46 | # Remove Debian theme and menu | ||
| 47 | rm -f $PKG/etc/xdg/$name/Themes/Debian.plist | ||
| 48 | rm -f $PKG/etc/xdg/$name/RootMenuDebian.plist | ||
| 49 | } | ||
| 50 | |||
| 51 | signify() { | ||
| 52 | untrusted comment: public key | ||
| 53 | RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 | ||
| 54 | } | ||
| 55 | |||
| 56 | # vim: filetype=sh | ||