blob: 09bf13145673b5e6d5f04abeba2d401988b2ffd8 (
plain)
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
|
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
pkgname=wlmaker
pkgver=0.5
pkgrel=1
pkgdesc='Wayland compositor inspired by WindowMaker'
_libbase_commit=69a87c3c476c73683c9b12e3ac099ac464bd562e
url=https://github.com/phkaeser/wlmaker
arch=(x86_64)
license=(Apache-2.0)
makedepends=(cmake doxygen git wayland-protocols)
depends=(bash cairo libxkbcommon wlroots xorg-xwayland)
source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"
"$pkgname-$pkgver-libbase::git+https://github.com/phkaeser/libbase#commit=$_libbase_commit")
b2sums=('2370d3ced81a29843e7f574de73ff7c88761b56c81b52aeeecb0c63a8c2060b5ce9c59456aa30d7a827ac83885b377717cc4847592bfe83b0fbc80d9c2817c1f'
'ec7047050405ea4aab8fa9021e530bc99a8752d92944f87e7dec3849fe2bfe5916ddb163c2cd5000e294ea0e04f3d7e9df72693c7570ee4dba89decfdf690717')
prepare() {
for i in "$pkgname-$pkgver"{,-libbase}/CMakeLists.txt ; do
echo "=== Patching: $i ==="
sed -i -e 's/^\s*ELSE\s*(config_OPTIM)$/ ELSEIF (config_DEBUG)/' "$i"
done
rm -rf \
"$pkgname-$pkgver/submodules/libbase"
cp -a \
"$pkgname-$pkgver-libbase" \
"$pkgname-$pkgver/submodules/libbase"
}
build() {
rm -rf build
cmake -S "$pkgname-$pkgver" -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-Dconfig_DEBUG=OFF \
-Dconfig_OPTIM=OFF \
-Wno-dev
cmake --build build
}
check() {
return 0
# FIXME: Tests titlebar_title.title and primitives.window_title are failing.
# ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" \
"$pkgname-$pkgver/etc"/*.plist
# Uneeded, contains Debian-isms.
rm -f "$pkgdir/usr/bin/wrap-wlmaker.sh"
}
|