From bf63d6f3c45d5b7074c552d463ab46835c679b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 12 Dec 2020 20:06:18 +0100 Subject: [PATCH] Fix prepare patching --- .SRCINFO | 4 ++-- PKGBUILD | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 60ee63e..a14498c 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = wlroots-hidpi-git pkgdesc = Modular Wayland compositor library, with XWayland HiDPI - pkgver = 0.11.0.r76.gf0ddcd36 + pkgver = 0.12.0.r96.g4c363a56 pkgrel = 1 url = https://github.com/swaywm/wlroots arch = x86_64 @@ -19,7 +19,7 @@ pkgbase = wlroots-hidpi-git depends = pixman depends = libinput depends = libxkbcommon - provides = wlroots-hidpi=0.11.0 + provides = wlroots-hidpi=0.12.0 conflicts = wlroots options = debug source = wlroots-hidpi-git::git+https://github.com/swaywm/wlroots diff --git a/PKGBUILD b/PKGBUILD index 7aa699b..ffddbd0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ -# Maintainer: Adrian Perez de Castro # Maintainer: Antonin Décimo +# Contributor: Adrian Perez de Castro pkgname=wlroots-hidpi-git -pkgver=0.11.0.r76.gf0ddcd36 +pkgver=0.12.0.r96.g4c363a56 pkgrel=1 license=(custom:MIT) pkgdesc='Modular Wayland compositor library, with XWayland HiDPI' @@ -31,11 +31,14 @@ pkgver () { ) } +prepare () { + cd "${pkgname}" + patch --forward --strip=1 --input="${srcdir}/xwayland_hidpi.diff" +} + build () { cd "${pkgname}" - patch -Np1 -i ../xwayland_hidpi.diff - rm -rf build meson build \ --prefix /usr \