void-packages/srcpkgs/sway/template

25 lines
792 B
Bash

# Template file for 'sway'
pkgname=sway
version=0.15.2
revision=1
build_style=cmake
configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc"
hostmakedepends="asciidoc pkg-config wayland-devel"
makedepends="gdk-pixbuf-devel json-c-devel libcap-devel pam-devel pango-devel
wlc-devel"
conf_files="/etc/sway/config /etc/pam.d/swaylock"
short_desc="An i3-compatible window manager for Wayland"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="http://swaywm.org"
distfiles="https://github.com/SirCmpwn/sway/archive/${version}.tar.gz"
checksum=05526e3038d2a5490a64bd816f1f04d2a6c214ddc6182835312b273b40b737ae
pre_configure() {
sed -i CMakeLists.txt -e "s;-Werror;-Wno-error;"
}
post_install() {
vlicense LICENSE
# must be setuid without logind!
chmod u+s ${DESTDIR}/usr/bin/sway
}