sway-hidpi/PKGBUILD

54 lines
1.5 KiB
Bash
Raw Normal View History

2015-08-16 17:17:29 +03:00
# Maintainer: Drew DeVault <sir@cmpwn.com>
2020-05-02 19:53:00 +03:00
# Maintainer: Antonin Décimo <antonin dot decimo at gmail dot com>
pkgname=sway-hidpi-git
_pkgname=sway-hidpi
2020-07-08 18:21:51 +03:00
pkgver=r6437.ea3ba203
2015-08-18 04:27:10 +03:00
pkgrel=1
2018-10-02 14:25:51 +03:00
license=("MIT")
2020-05-02 19:53:00 +03:00
pkgdesc="i3-compatible Wayland compositor, with XWayland HiDPI"
makedepends=("meson" "git" "scdoc" "wayland-protocols" "ninja")
2015-12-08 14:12:02 +02:00
depends=(
2020-05-02 19:53:00 +03:00
"json-c" "pcre" "wlroots-hidpi-git" "cairo" "pango" "gdk-pixbuf2" "pam"
"xorg-server-xwayland-hidpi-git" "swaybg-git" "xsettingsd"
2015-12-08 14:12:02 +02:00
)
2015-08-16 17:51:19 +03:00
optdepends=(
"alacritty: Default terminal emulator."
2015-12-27 18:08:23 +02:00
"dmenu: Default for launching applications."
"i3status: To display system information with a bar."
2019-02-25 18:44:22 +02:00
"swayidle-git: Idle management daemon for Sway."
"swaylock-git: Screen locker for Sway."
2015-08-16 17:51:19 +03:00
)
2015-09-02 16:14:52 +03:00
arch=("i686" "x86_64")
2018-10-02 14:25:51 +03:00
url="https://swaywm.org"
2020-05-02 19:53:00 +03:00
source=("${pkgname%-*}::git+https://github.com/swaywm/sway.git"
2020-07-08 18:21:51 +03:00
"xwayland_hidpi.diff::https://github.com/swaywm/sway/pull/5090.diff")
2020-05-02 19:53:00 +03:00
sha512sums=('SKIP'
2020-07-08 18:21:51 +03:00
'813863fe8d391761770eb264b1c0a2d9442efde3e79fae6b78386ed7c041906eef60bbf9d9bc7d118494de8aba2cd4c45a13dcd2ca09f3f1cd1157e74f122667')
2018-10-02 14:25:51 +03:00
provides=("sway")
conflicts=("sway")
2018-10-02 15:04:05 +03:00
options=(debug !strip)
2015-08-16 17:17:29 +03:00
2015-08-16 17:19:15 +03:00
pkgver() {
2019-02-25 18:44:22 +02:00
cd "$_pkgname"
2015-08-16 17:19:15 +03:00
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
2019-02-25 18:44:22 +02:00
cd "$_pkgname"
2020-07-08 18:21:51 +03:00
patch -Np1 -i ../xwayland_hidpi.diff
}
build() {
2019-02-25 18:44:22 +02:00
cd "$_pkgname"
meson \
-Dwerror=false \
--prefix /usr \
"$srcdir/build"
2018-10-02 14:25:51 +03:00
ninja -C "$srcdir/build"
2015-08-16 17:17:29 +03:00
}
package() {
2019-02-25 18:44:22 +02:00
cd "$_pkgname"
DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
2015-08-16 17:17:29 +03:00
}