87 lines
2.4 KiB
Text
87 lines
2.4 KiB
Text
# Maintainer: Brett Cornwall <ainola@archlinux.org>
|
|
# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
|
|
# Contributor: Omar Pakker
|
|
|
|
pkgname=wlroots0.16
|
|
pkgver=0.16.2
|
|
pkgrel=2
|
|
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'
|
|
)
|
|
provides=(
|
|
'libwlroots.so'
|
|
)
|
|
source=(
|
|
"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz"
|
|
"https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/$pkgver/downloads/wlroots-$pkgver.tar.gz.sig"
|
|
"Revert-layer-shell-error-on-0-dimension-without-anch.patch"
|
|
)
|
|
sha256sums=('83e9a11605f23d4bf781ab1947089483d9ec3f7e9ba65398e0609593b77d44aa'
|
|
'SKIP'
|
|
'd53a62f49334fe15583a951c9e38e7f9f74b19210bdb7f80f16ec0398c3d7b3e')
|
|
validpgpkeys=(
|
|
'34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser
|
|
'9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A' # Drew DeVault
|
|
'4100929B33EEB0FD1DB852797BC79407090047CA' # Sway signing key
|
|
)
|
|
|
|
prepare() {
|
|
cd wlroots-"${pkgver}"
|
|
# Allow a minor protocol violation until phosh is fixed without this patch
|
|
# phosh crashes on launch.
|
|
patch -Np1 -i "${srcdir}/Revert-layer-shell-error-on-0-dimension-without-anch.patch"
|
|
}
|
|
|
|
build() {
|
|
arch-meson \
|
|
--includedir /usr/include/wlroots0.16 \
|
|
--libdir /usr/lib/wlroots0.16 \
|
|
wlroots-"${pkgver}" build
|
|
ninja -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.16/*; do
|
|
if [[ $f == *.so ]]; then
|
|
ln -srf -- usr/lib/"$(readlink "$f")" "$f"
|
|
elif [[ ! -d $f ]]; then
|
|
mv "$f" usr/lib
|
|
fi
|
|
done
|
|
}
|
|
## 5de575ef2699bb1740ea7bb11214412b2aa505296228b6b75df13b3db699a9e7 # PKGBUILD
|