void-packages/srcpkgs/hikari/template

45 lines
1.6 KiB
Bash
Raw Normal View History

2020-05-06 00:52:52 +02:00
# Template file for 'hikari'
pkgname=hikari
2020-07-21 15:08:00 +02:00
version=2.1.0
revision=1
2020-05-06 00:52:52 +02:00
build_style=gnu-makefile
make_cmd=bmake
make_use_env=yes
make_build_args="WITH_POSIX_C_SOURCE=YES WITH_XWAYLAND=YES
2020-06-01 16:38:18 +02:00
WITH_SCREENCOPY=YES WITH_GAMMACONTROL=YES WITH_LAYERSHELL=YES ETC_PREFIX="
make_install_args="ETC_PREFIX="
2020-05-06 00:52:52 +02:00
hostmakedepends="bmake pkg-config"
makedepends="wlroots-devel pango-devel cairo-devel pam-devel glib-devel
2020-06-01 16:38:18 +02:00
libinput-devel xcb-util-errors-devel xcb-util-wm-devel libucl-devel
libxkbcommon-devel pixman-devel libevdev-devel"
2020-05-06 00:52:52 +02:00
short_desc="Stacking Wayland compositor with tiling features"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-2-Clause"
homepage="https://hikari.acmelabs.space"
2020-06-17 03:04:22 +02:00
changelog="https://hub.darcs.net/raichoo/hikari/browse/CHANGELOG.md"
2020-05-06 00:52:52 +02:00
distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
2020-07-21 15:08:00 +02:00
checksum=6a1f14a73119b227b7d2c364c0627aade2630b080fe730bb11e9854d3408b59b
2020-06-01 16:38:18 +02:00
conf_files="/etc/pam.d/hikari-unlocker /etc/hikari/hikari.conf"
2020-05-06 00:52:52 +02:00
if [ "$CROSS_BUILD" ]; then
# Makefile executes wayland-scanner
hostmakedepends+=" wayland-devel"
fi
pre_build() {
2020-06-01 16:38:18 +02:00
# The hikari Makefile appends to the CFLAGS and LDFLAGS variables;
# bmake ignores these appends altogether when passing variables on the
# command line (i.e., when make_use_env is undefined), but it ignores
# the values in the environment when make_use_env=yes. The _EXTRA
# variables provided in the Makefile allow us to force the right flags.
export CFLAGS_EXTRA="${CFLAGS}"
export LDFLAGS_EXTRA="${LDFLAGS}"
# bmake tends to ignore CC in the environment
2020-05-06 00:52:52 +02:00
make_build_args+=" CC=$CC"
}
post_install() {
vlicense LICENSE
}