void-packages/srcpkgs/hikari/template

40 lines
1.3 KiB
Bash
Raw Normal View History

2020-05-06 00:52:52 +02:00
# Template file for 'hikari'
pkgname=hikari
version=1.2.1
revision=1
build_style=gnu-makefile
make_cmd=bmake
make_use_env=yes
make_build_args="WITH_POSIX_C_SOURCE=YES WITH_XWAYLAND=YES
WITH_SCREENCOPY=YES WITH_GAMMACONTROL=YES WITH_LAYERSHELL=YES"
make_install_args="ETC_PREFIX=/etc"
hostmakedepends="bmake pkg-config"
makedepends="wlroots-devel pango-devel cairo-devel pam-devel glib-devel
libinput-devel xcb-util-errors-devel xcb-util-wm-devel
libucl-devel libxkbcommon-devel pixman-devel libevdev-devel"
short_desc="Stacking Wayland compositor with tiling features"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-2-Clause"
homepage="https://hikari.acmelabs.space"
distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
checksum=f361ec9a367c03a9e678a8d04361426f6982e661719b9e6a3e742572eae0a8e5
conf_files="/etc/pam.d/hikari-unlocker"
if [ "$CROSS_BUILD" ]; then
# Makefile executes wayland-scanner
hostmakedepends+=" wayland-devel"
fi
pre_build() {
# Relying on CFLAGS and LDFLAGS in the environment or command line
# would clobber additions the Makefile adds to find libs and headers;
# move those to *_COMMON and patch Makefile to append those flags
export CFLAGS_COMMON="${CFLAGS}"
export LDFLAGS_COMMON="${LDFLAGS}"
make_build_args+=" CC=$CC"
}
post_install() {
vlicense LICENSE
}