void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

commit 0a4c6c9461df0f61c1a4cc47dc057fdd787ff1f1
parent 803429330b6e3f2be5b6eabe0904896c79958a67
Author: Dash Eclipse <dash@ezup.dev>
Date:   Thu, 16 Jul 2020 16:52:22 +0000

slock: add config.h

Diffstat:
Asrcpkgs/slock/files/config.h | 25+++++++++++++++++++++++++
Msrcpkgs/slock/template | 3++-
2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/slock/files/config.h b/srcpkgs/slock/files/config.h @@ -0,0 +1,25 @@ +/* user and group to drop privileges to */ +static const char *user = "nobody"; +static const char *group = "nogroup"; + +static const char *colorname[NUMCOLS] = { + [INIT] = "black", /* after initialization */ + [INPUT] = "#2E3440", /* during input */ + [FAILED] = "#BF616A", /* wrong password */ + [CAPS] = "red", /* CapsLock on */ +}; + +/* treat a cleared input like a wrong password (color) */ +static const int failonclear = 1; + +/* time in seconds before the monitor shuts down */ +static const int monitortime = 5; + +/* default message */ +static const char * message = "Suckless: Software that sucks less."; + +/* text color */ +static const char * text_color = "#D8DEE9"; + +/* text size (must be a valid size) */ +static const char * font_name = "-xos4-terminus-medium-r-normal--18-180-72-72-c-100-iso10646-1"; diff --git a/srcpkgs/slock/template b/srcpkgs/slock/template @@ -1,7 +1,7 @@ # Template file for 'slock' pkgname=slock version=1.4 -revision=1 +revision=2 patch_args="-Np1" hostmakedepends="pkg-config" makedepends="libXrandr-devel libXinerama-devel" @@ -13,6 +13,7 @@ distfiles="http://dl.suckless.org/tools/slock-${version}.tar.gz" checksum=b53849dbc60109a987d7a49b8da197305c29307fd74c12dc18af0d3044392e6a do_build() { + [ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h sed -i 's/CPPFLAGS =/CPPFLAGS +=/g' config.mk sed -i 's/CFLAGS =/CFLAGS +=/g' config.mk sed -i 's/LDFLAGS =/LDFLAGS +=/g' config.mk