mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
hikari: update to 2.0.0.
This commit is contained in:
parent
9b1b259c9c
commit
96ea072583
2 changed files with 16 additions and 70 deletions
|
@ -1,58 +0,0 @@
|
||||||
--- Makefile.orig 2020-05-05 18:42:58.044009729 -0400
|
|
||||||
+++ Makefile 2020-05-05 18:44:57.613239379 -0400
|
|
||||||
@@ -75,6 +75,14 @@
|
|
||||||
.PHONY: distclean clean clean-doc doc dist install uninstall
|
|
||||||
.PATH: src
|
|
||||||
|
|
||||||
+.ifdef CFLAGS_COMMON
|
|
||||||
+CFLAGS += ${CFLAGS_COMMON}
|
|
||||||
+.endif
|
|
||||||
+
|
|
||||||
+.ifdef LDFLAGS_COMMON
|
|
||||||
+LDFLAGS += ${LDFLAGS_COMMON}
|
|
||||||
+.endif
|
|
||||||
+
|
|
||||||
.ifdef DEBUG
|
|
||||||
CFLAGS += -g -O0 -fsanitize=address
|
|
||||||
.else
|
|
||||||
@@ -160,7 +168,7 @@
|
|
||||||
echo "#define HIKARI_VERSION \"${VERSION}\"" >> version.h
|
|
||||||
|
|
||||||
hikari: version.h xdg-shell-protocol.h wlr-layer-shell-unstable-v1-protocol.h ${OBJS}
|
|
||||||
- ${CC} ${LDFLAGS} ${CFLAGS} ${INCLUDES} ${LIBS} ${OBJS} -o ${.TARGET}
|
|
||||||
+ ${CC} ${LDFLAGS} ${CFLAGS} ${INCLUDES} -o ${.TARGET} ${OBJS} ${LIBS}
|
|
||||||
|
|
||||||
xdg-shell-protocol.h:
|
|
||||||
wayland-scanner server-header ${WAYLAND_PROTOCOLS}/stable/xdg-shell/xdg-shell.xml ${.TARGET}
|
|
||||||
@@ -169,7 +177,7 @@
|
|
||||||
wayland-scanner server-header protocol/wlr-layer-shell-unstable-v1.xml ${.TARGET}
|
|
||||||
|
|
||||||
hikari-unlocker: hikari_unlocker.c
|
|
||||||
- ${CC} -lpam hikari_unlocker.c -o hikari-unlocker
|
|
||||||
+ ${CC} ${LDFLAGS} ${CFLAGS} -o hikari-unlocker hikari_unlocker.c -lpam
|
|
||||||
|
|
||||||
clean-doc:
|
|
||||||
@test -e _darcs && echo "cleaning manpage" ||:
|
|
||||||
@@ -216,14 +224,14 @@
|
|
||||||
dist: distclean hikari-${VERSION}.tar.gz
|
|
||||||
|
|
||||||
install: hikari hikari-unlocker share/man/man1/hikari.1
|
|
||||||
- mkdir -p ${PREFIX}/bin
|
|
||||||
- mkdir -p ${PREFIX}/share/man/man1
|
|
||||||
- mkdir -p ${PREFIX}/share/examples/hikari
|
|
||||||
- mkdir -p ${ETC_PREFIX}/pam.d
|
|
||||||
- install -m 4555 -g ${INSTALL_GROUP} hikari hikari-unlocker ${PREFIX}/bin
|
|
||||||
- install -m 644 -g ${INSTALL_GROUP} share/man/man1/hikari.1 ${PREFIX}/share/man/man1
|
|
||||||
- install -m 644 -g ${INSTALL_GROUP} share/examples/hikari/hikari.conf ${PREFIX}/share/examples/hikari
|
|
||||||
- install -m 644 -g ${INSTALL_GROUP} pam.d/hikari-unlocker.${OS} ${ETC_PREFIX}/pam.d/hikari-unlocker
|
|
||||||
+ mkdir -p ${DESTDIR}/${PREFIX}/bin
|
|
||||||
+ mkdir -p ${DESTDIR}/${PREFIX}/share/man/man1
|
|
||||||
+ mkdir -p ${DESTDIR}/${PREFIX}/share/examples/hikari
|
|
||||||
+ mkdir -p ${DESTDIR}/${ETC_PREFIX}/pam.d
|
|
||||||
+ install -m 4555 hikari hikari-unlocker ${DESTDIR}/${PREFIX}/bin
|
|
||||||
+ install -m 644 share/man/man1/hikari.1 ${DESTDIR}/${PREFIX}/share/man/man1
|
|
||||||
+ install -m 644 share/examples/hikari/hikari.conf ${DESTDIR}/${PREFIX}/share/examples/hikari
|
|
||||||
+ install -m 644 pam.d/hikari-unlocker.${OS} ${DESTDIR}/${ETC_PREFIX}/pam.d/hikari-unlocker
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
-rm ${PREFIX}/bin/hikari
|
|
|
@ -1,24 +1,24 @@
|
||||||
# Template file for 'hikari'
|
# Template file for 'hikari'
|
||||||
pkgname=hikari
|
pkgname=hikari
|
||||||
version=1.2.1
|
version=2.0.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_cmd=bmake
|
make_cmd=bmake
|
||||||
make_use_env=yes
|
make_use_env=yes
|
||||||
make_build_args="WITH_POSIX_C_SOURCE=YES WITH_XWAYLAND=YES
|
make_build_args="WITH_POSIX_C_SOURCE=YES WITH_XWAYLAND=YES
|
||||||
WITH_SCREENCOPY=YES WITH_GAMMACONTROL=YES WITH_LAYERSHELL=YES"
|
WITH_SCREENCOPY=YES WITH_GAMMACONTROL=YES WITH_LAYERSHELL=YES ETC_PREFIX="
|
||||||
make_install_args="ETC_PREFIX=/etc"
|
make_install_args="ETC_PREFIX="
|
||||||
hostmakedepends="bmake pkg-config"
|
hostmakedepends="bmake pkg-config"
|
||||||
makedepends="wlroots-devel pango-devel cairo-devel pam-devel glib-devel
|
makedepends="wlroots-devel pango-devel cairo-devel pam-devel glib-devel
|
||||||
libinput-devel xcb-util-errors-devel xcb-util-wm-devel
|
libinput-devel xcb-util-errors-devel xcb-util-wm-devel libucl-devel
|
||||||
libucl-devel libxkbcommon-devel pixman-devel libevdev-devel"
|
libxkbcommon-devel pixman-devel libevdev-devel"
|
||||||
short_desc="Stacking Wayland compositor with tiling features"
|
short_desc="Stacking Wayland compositor with tiling features"
|
||||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
license="BSD-2-Clause"
|
license="BSD-2-Clause"
|
||||||
homepage="https://hikari.acmelabs.space"
|
homepage="https://hikari.acmelabs.space"
|
||||||
distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
|
distfiles="${homepage}/releases/${pkgname}-${version}.tar.gz"
|
||||||
checksum=f361ec9a367c03a9e678a8d04361426f6982e661719b9e6a3e742572eae0a8e5
|
checksum=0230bd89c90da1082e7d59bd991118e0b76c621ee55d21506893866a44adb5fe
|
||||||
conf_files="/etc/pam.d/hikari-unlocker"
|
conf_files="/etc/pam.d/hikari-unlocker /etc/hikari/hikari.conf"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Makefile executes wayland-scanner
|
# Makefile executes wayland-scanner
|
||||||
|
@ -26,11 +26,15 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# Relying on CFLAGS and LDFLAGS in the environment or command line
|
# The hikari Makefile appends to the CFLAGS and LDFLAGS variables;
|
||||||
# would clobber additions the Makefile adds to find libs and headers;
|
# bmake ignores these appends altogether when passing variables on the
|
||||||
# move those to *_COMMON and patch Makefile to append those flags
|
# command line (i.e., when make_use_env is undefined), but it ignores
|
||||||
export CFLAGS_COMMON="${CFLAGS}"
|
# the values in the environment when make_use_env=yes. The _EXTRA
|
||||||
export LDFLAGS_COMMON="${LDFLAGS}"
|
# 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
|
||||||
make_build_args+=" CC=$CC"
|
make_build_args+=" CC=$CC"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue