blob: 21056fcdf4d06e9e954f68306204c0b39b98ed60 (
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
|
# Maintainer: GalaxySnail <me+aur@glxys.nl>
pkgname=wlroots-docs
pkgver=0.17.0
pkgrel=1
license=("MIT")
pkgdesc="Modular Wayland compositor library (documentation)"
arch=("any")
url="https://gitlab.freedesktop.org/wlroots/wlroots"
makedepends=(
"gyosu"
"wayland"
"wlroots=$pkgver"
"wayland-protocols"
)
source=(
"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz"
)
sha256sums=(
'9da3475a6834a6a9a8fd93de84f4ef91f9ee48ff70c305aa9522bf0db9e61128'
)
build() {
mkdir -p wayland-headers
local f
for f in /usr/share/wayland-protocols/*/*/*.xml wlroots-$pkgver/protocol/*.xml; do
wayland-scanner server-header "$f" "wayland-headers/$(basename -s .xml "$f")-protocol.h"
done
gyosu \
$(pkg-config --cflags-only-I wlroots) \
-Iwayland-headers \
-DWLR_USE_UNSTABLE \
-ffile-prefix-map=/usr/include/= \
$(find /usr/include/wlr -type f -not -name vulkan.h)
}
package() {
install -dm755 "$pkgdir/usr/share/doc/$pkgname"
cp -r out/* "$pkgdir/usr/share/doc/$pkgname"
}
|