96 lines
2.7 KiB
Bash
96 lines
2.7 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=wlroots0.16
|
|
pkgver=0.16.2
|
|
pkgrel=02
|
|
pkgdesc='Modular Wayland compositor library'
|
|
url='https://gitlab.freedesktop.org/wlroots/wlroots'
|
|
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'
|
|
'vulkan-headers'
|
|
'wayland-protocols'
|
|
'xorg-xwayland'
|
|
)
|
|
optdepends=(
|
|
'xorg-xwayland: Xwayland support'
|
|
)
|
|
provides=(
|
|
'libwlroots.so'
|
|
)
|
|
# options=(debug)
|
|
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"
|
|
)
|
|
|
|
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
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('MIT')
|
|
|
|
validpgpkeys=('34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48' # Simon Ser
|
|
'9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A' # Drew DeVault
|
|
'4100929B33EEB0FD1DB852797BC79407090047CA') # Sway signing key
|
|
|
|
sha256sums=(83e9a11605f23d4bf781ab1947089483d9ec3f7e9ba65398e0609593b77d44aa # wlroots-0.16.2.tar.gz
|
|
c97e053085872acaaf13cc9b175381a7a0b0d37dd0f6bbdd5ac12e4000f0fcf3 # wlroots-0.16.2.tar.gz.sig
|
|
d53a62f49334fe15583a951c9e38e7f9f74b19210bdb7f80f16ec0398c3d7b3e) # Revert-layer-shell-error-on-0-dimension-without-anch.patch
|
|
|
|
## 1296b4182d438e24989caeee1fe88a87070a14a7c87a2d0ef35705abaa9de241 wlroots0.16-0.16.2-02-x86_64.pkg.tar.lz
|
|
|