blob: 14f9ab36d0bb56f6f4feebfb0ebf7308e1d786e1 (
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
|
# Maintainer: Keith <k-aur at 3d3 dot ca>
# Contributor: Adrian Perez de Castro <aperez@igalia.com>
# Contributor: Antonin Décimo <antonin dot decimo at gmail dot com>
pkgname=wlroots-no-axrgb-assert-git
pkgver=0.15.0.r5182.0855cdac
pkgrel=1
license=(custom:MIT)
pkgdesc='wlroots-git, with argb/xrgb8888 assert removed to make nvidia driver work'
url=https://gitlab.freedesktop.org/wlroots/wlroots
arch=(x86_64)
provides=("libwlroots.so" "wlroots" "wlroots-git" "wlroots=${pkgver%%.r*}")
conflicts=(wlroots wlroots-git)
options=(debug)
depends=(
glslang
libinput
libxcb
libxkbcommon
opengl-driver
pixman
wayland
xcb-util-errors
xcb-util-renderutil
xcb-util-wm
seatd
vulkan-icd-loader
vulkan-validation-layers
xorg-xwayland)
makedepends=(
git
meson
vulkan-headers
wayland-protocols
xorgproto)
source=("${pkgname}::git+${url}"
"no-axrgb-assert.patch")
sha512sums=('SKIP'
'34cab3eb72cf0c5f1e71c2eba8da780517469b952dba0a0950960e3ac4a5d9b2043debcde884d605dda3d15ee88870b2e55bceb97bbc928b2344b38620e19ef3')
pkgver () {
cd "${pkgname}"
printf "%sr%s.%s" $(awk '/version:/ {print $2}' meson.build |head -1| tr -d \' | tr , .) \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
patch --forward --strip=1 --input="${srcdir}/no-axrgb-assert.patch"
}
build () {
arch-meson \
--buildtype=debug \
-Dwerror=false \
-Dexamples=false \
"${pkgname}" build
meson compile -C build
}
package () {
DESTDIR="${pkgdir}" meson install -C build
install -Dm644 "${pkgname}/"LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
post_upgrade() {
echo "Make sure to upgrade wlroots-git and sway-git together."
echo "Upgrading one but not the other is unsupported."
}
|