archrelease: copy trunk to community-any
[ArchLinux/community.git] / wlroots / trunk / PKGBUILD
blobdf178ebfefeb596e78ba983de7ab5c4f0d7871ef
1 # Maintainer: Brett Cornwall <ainola@archlinux.org>
2 # Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
3 # Contributor: Omar Pakker
5 pkgname=wlroots
6 pkgver=0.16.2
7 pkgrel=1
8 license=('MIT')
9 pkgdesc='Modular Wayland compositor library'
10 url='https://gitlab.freedesktop.org/wlroots/wlroots'
11 arch=('x86_64')
12 depends=(
13     'libglvnd'
14     'libinput'
15     'libpixman-1.so'
16     'libseat.so'
17     'libudev.so'
18     'libvulkan.so'
19     'libwayland-client.so'
20     'libwayland-server.so'
21     'libxcb'
22     'libxkbcommon.so'
23     'opengl-driver'
24     'xcb-util-errors'
25     'xcb-util-renderutil'
26     'xcb-util-wm'
28 makedepends=(
29     'glslang'
30     'meson'
31     'ninja'
32     'systemd'
33     'vulkan-headers'
34     'wayland-protocols'
35     'xorg-xwayland'
37 optdepends=(
38     'xorg-xwayland: Xwayland support'
40 provides=(
41     'libwlroots.so'
43 options=(
44     'debug'
46 source=(
47     "$pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz"
48     "https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz.sig"
50 sha256sums=('83e9a11605f23d4bf781ab1947089483d9ec3f7e9ba65398e0609593b77d44aa'
51             'SKIP')
52 validpgpkeys=(
53     '34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser
54     '9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A' # Drew DeVault
55     '4100929B33EEB0FD1DB852797BC79407090047CA' # Sway signing key
58 build() {
59     arch-meson "$pkgname-$pkgver" build
60     ninja -C build
63 package() {
64     DESTDIR="$pkgdir" ninja -C build install
65     install -Dm644 "$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"