From befe812438c7cfecea335ed6511158f5e90ae78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 2 May 2020 18:53:00 +0200 Subject: [PATCH] Add HiDPI support. --- .SRCINFO | 17 ++++++++++------- PKGBUILD | 20 ++++++++++++-------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 0431292..8476886 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ -pkgbase = sway-git - pkgdesc = i3-compatible Wayland compositor - pkgver = r5942.3f77591b +pkgbase = sway-hidpi-git + pkgdesc = i3-compatible Wayland compositor, with XWayland HiDPI + pkgver = r6341.ae3ec745 pkgrel = 1 url = https://swaywm.org arch = i686 @@ -13,13 +13,14 @@ pkgbase = sway-git makedepends = ninja depends = json-c depends = pcre - depends = wlroots-git + depends = wlroots-hidpi-git depends = cairo depends = pango depends = gdk-pixbuf2 depends = pam - depends = xorg-server-xwayland + depends = xorg-server-xwayland-hidpi-git depends = swaybg-git + depends = xsettingsd optdepends = alacritty: Default terminal emulator. optdepends = dmenu: Default for launching applications. optdepends = i3status: To display system information with a bar. @@ -29,8 +30,10 @@ pkgbase = sway-git conflicts = sway options = debug options = !strip - source = sway::git+https://github.com/swaywm/sway.git + source = sway-hidpi::git+https://github.com/swaywm/sway.git + source = https://github.com/swaywm/sway/pull/5090.diff + sha512sums = SKIP sha512sums = SKIP -pkgname = sway-git +pkgname = sway-hidpi-git diff --git a/PKGBUILD b/PKGBUILD index e655a7a..9b94117 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,15 @@ # Maintainer: Drew DeVault -pkgname=sway-git -_pkgname=sway -pkgver=r5942.3f77591b +# Maintainer: Antonin Décimo +pkgname=sway-hidpi-git +_pkgname=sway-hidpi +pkgver=r6341.ae3ec745 pkgrel=1 license=("MIT") -pkgdesc="i3-compatible Wayland compositor" +pkgdesc="i3-compatible Wayland compositor, with XWayland HiDPI" makedepends=("meson" "git" "scdoc" "wayland-protocols" "ninja") depends=( - "json-c" "pcre" "wlroots-git" "cairo" "pango" "gdk-pixbuf2" "pam" - "xorg-server-xwayland" "swaybg-git" + "json-c" "pcre" "wlroots-hidpi-git" "cairo" "pango" "gdk-pixbuf2" "pam" + "xorg-server-xwayland-hidpi-git" "swaybg-git" "xsettingsd" ) optdepends=( "alacritty: Default terminal emulator." @@ -19,8 +20,10 @@ optdepends=( ) arch=("i686" "x86_64") url="https://swaywm.org" -source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git") -sha512sums=('SKIP') +source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git" + "https://github.com/swaywm/sway/pull/5090.diff") +sha512sums=('SKIP' + 'SKIP') provides=("sway") conflicts=("sway") options=(debug !strip) @@ -32,6 +35,7 @@ pkgver() { prepare() { cd "$_pkgname" + patch -Np1 -i ../5090.diff } build() {