59 lines
1.8 KiB
Bash
59 lines
1.8 KiB
Bash
# Maintainer: Adrian Perez de Castro <aperez@igalia.com>
|
|
# Maintainer: Antonin Décimo <antonin dot decimo at gmail dot com>
|
|
pkgname=wlroots-hidpi-git
|
|
pkgver=0.10.0.r158.g5e0ef70c
|
|
pkgrel=1
|
|
license=(custom:MIT)
|
|
pkgdesc='Modular Wayland compositor library, with XWayland HiDPI'
|
|
url=https://github.com/swaywm/wlroots
|
|
arch=(x86_64)
|
|
provides=("wlroots-hidpi=${pkgver%%.r*}")
|
|
conflicts=(wlroots)
|
|
options=(debug)
|
|
depends=(libcap systemd wayland opengl-driver libxcb xcb-util-errors
|
|
xcb-util-wm pixman libinput libxkbcommon)
|
|
makedepends=(meson ninja git wayland-protocols xorgproto)
|
|
source=("${pkgname}::git+${url}"
|
|
# "xwayland_hidpi.diff::https://github.com/swaywm/wlroots/pull/2064.diff"
|
|
"xwayland_hidpi.diff::https://github.com/swaywm/wlroots/compare/master...MisterDA:xwayland_hidpi.diff"
|
|
)
|
|
sha512sums=('SKIP'
|
|
# 'c8f316ebffaf6ad0991afc0091c0a1dec69c29ec7a2e8c5c5cf260d9919e11b1040da9006028aac5e1883fb788927c4bccef05629bf3db2b3c2374e33c6482f2'
|
|
'0d48afed05b4cc7d7f8542043bbb7be915b7d2c5a7db165a5ebdb12d9df0c67dad87e26d1e4889a46eb976a6766275ca0575f05a1e14a592c65587c309294cd7'
|
|
)
|
|
|
|
pkgver () {
|
|
cd "${pkgname}"
|
|
(
|
|
set -o pipefail
|
|
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
)
|
|
}
|
|
|
|
build () {
|
|
cd "${pkgname}"
|
|
|
|
patch -Np1 -i ../xwayland_hidpi.diff
|
|
|
|
rm -rf build
|
|
meson build \
|
|
--prefix /usr \
|
|
--buildtype debug \
|
|
-Dlibcap=enabled \
|
|
-Dlogind=enabled \
|
|
-Dlogind-provider=systemd \
|
|
-Dxcb-errors=enabled \
|
|
-Dxcb-icccm=enabled \
|
|
-Dxwayland=enabled \
|
|
-Dx11-backend=enabled \
|
|
-Dexamples=true
|
|
ninja -C build
|
|
}
|
|
|
|
package () {
|
|
cd "${pkgname}"
|
|
DESTDIR="${pkgdir}" ninja -C build install
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|