New package: hikari-1.2.1
This commit is contained in:
parent
22f24bd069
commit
f1b65ca59a
|
@ -0,0 +1,58 @@
|
||||||
|
--- 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
|
|
@ -0,0 +1,39 @@
|
||||||
|
# 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
|
||||||
|
}
|
Loading…
Reference in New Issue