void-packages/srcpkgs/sway/template

34 lines
1.0 KiB
Bash

# Template file for 'sway'
pkgname=sway
version=1.8.1
revision=2
build_style=meson
configure_args="-Dwerror=false -Db_ndebug=false"
conf_files="/etc/sway/config"
hostmakedepends="pkg-config wayland-devel scdoc"
makedepends="wlroots0.16-devel pcre2-devel json-c-devel pango-devel cairo-devel
gdk-pixbuf-devel libevdev-devel"
depends="libcap-progs swaybg xorg-server-xwayland libxkbcommon>=1.5.0_1"
short_desc="Tiling Wayland compositor compatible with i3"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://swaywm.org"
changelog="https://github.com/swaywm/sway/releases"
distfiles="https://github.com/swaywm/sway/archive/refs/tags/${version}.tar.gz"
checksum=e9f575761342fc8fe0cfeea80c90f32ddfa8c543572fec179f40922346f47dff
post_install() {
vlicense LICENSE
vbin contrib/grimshot
vman contrib/grimshot.1
}
grimshot_package() {
short_desc="Helper for screenshots within sway"
depends="grim slurp sway wl-clipboard jq libnotify"
pkg_install() {
vmove usr/bin/grimshot
vmove usr/share/man/man1/grimshot.1
}
}