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