blob: bac96a4c9c45ce956d06084f40ea77425221a36a (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Contributor: Brett Cornwall <ainola@archlinux.org>
# Contributor: Maxim Baz <$pkgname at maximbaz dot com>
# Contributor: Omar Pakker
pkgname=wlroots0.15
pkgver=0.15.1
pkgrel=6
license=('MIT')
pkgdesc='Modular Wayland compositor library'
url='https://gitlab.freedesktop.org/wlroots/wlroots'
arch=('x86_64')
depends=(
'libglvnd'
'libinput'
'libpixman-1.so'
'libseat.so'
'libudev.so'
'libvulkan.so'
'libwayland-client.so'
'libwayland-server.so'
'libxcb'
'libxkbcommon.so'
'opengl-driver'
'xcb-util-errors'
'xcb-util-renderutil'
'xcb-util-wm'
)
makedepends=(
'glslang'
'meson'
'ninja'
'systemd'
'vulkan-headers'
'wayland-protocols'
'xorg-xwayland'
)
optdepends=(
'xorg-xwayland: Xwayland support'
)
options=(
'debug'
)
source=(
"$pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz"
"$pkgname-$pkgver.tar.gz.sig::https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz.sig"
0001-fix-calloc-transposed-args.patch
)
sha256sums=('5b92f11a52d978919ed1306e0d54c9d59f1762b28d44f0a2da3ef3b351305373'
'SKIP'
'6800829f248117203738e412d034c5cf5efb60091544f0137143281825743aee')
validpgpkeys=(
'34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser
'4100929B33EEB0FD1DB852797BC79407090047CA' # Drew DeVault
'9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A' # Sway signing key
)
prepare() {
cd wlroots-"$pkgver"
patch -Np2 -i "${srcdir}"/0001-fix-calloc-transposed-args.patch
}
build() {
arch-meson \
--includedir /usr/include/wlroots0.15 \
--libdir /usr/lib/wlroots0.15 \
-Dexamples=false \
wlroots-"$pkgver" build
meson compile -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -Dm644 wlroots-"$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
cd "${pkgdir}"
# Move libs to /usr/lib, except the .so symlinks
local f
for f in usr/lib/wlroots0.15/*; do
if [[ $f == *.so ]]; then
ln -srf -- usr/lib/"$(readlink "$f")" "$f"
elif [[ ! -d $f ]]; then
mv "$f" usr/lib
fi
done
}
|