diff --git a/srcpkgs/sent/files/config.h b/srcpkgs/sent/files/config.h deleted file mode 100644 index 9e4d5e71d3..0000000000 --- a/srcpkgs/sent/files/config.h +++ /dev/null @@ -1,41 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -static char *fontfallbacks[] = { - "dejavu", - "roboto", - "ubuntu", -}; -#define NUMFONTSCALES 30 -#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */ - -static const char *fgcol = "#000000"; -static const char *bgcol = "#FFFFFF"; - -static const float linespacing = 1.4; - -/* how much screen estate is to be used at max for the content */ -static const float usablewidth = 0.75; -static const float usableheight = 0.75; - -static Mousekey mshortcuts[] = { - /* button function argument */ - { Button1, advance, {.i = +1} }, - { Button2, advance, {.i = -1} }, -}; - -static Shortcut shortcuts[] = { - /* keysym function argument */ - { XK_q, quit, {0} }, - { XK_Right, advance, {.i = +1} }, - { XK_Left, advance, {.i = -1} }, - { XK_Return, advance, {.i = +1} }, - { XK_BackSpace, advance, {.i = -1} }, - { XK_l, advance, {.i = +1} }, - { XK_h, advance, {.i = -1} }, - { XK_j, advance, {.i = +1} }, - { XK_k, advance, {.i = -1} }, - { XK_Down, advance, {.i = +1} }, - { XK_Up, advance, {.i = -1} }, - { XK_Next, advance, {.i = +1} }, - { XK_Prior, advance, {.i = -1} }, -}; diff --git a/srcpkgs/sent/template b/srcpkgs/sent/template index 5ea29ee8ab..4e8da6c5cd 100644 --- a/srcpkgs/sent/template +++ b/srcpkgs/sent/template @@ -15,6 +15,7 @@ distfiles="http://dl.suckless.org/tools/sent-${version}.tar.gz" checksum=7bf3de9311ce291ff36adf5315b78fa72373e3ab80ca71387fb5884bcbd7be33 do_configure() { + [ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h cat <<! >>config.mk INCS = -I${XBPS_CROSS_BASE}/usr/include/freetype2 INCS+= -I${XBPS_CROSS_BASE}/usr/include/X11 @@ -22,7 +23,6 @@ LIBS = -lc -lm -lXft -lfontconfig -lX11 ! } - post_install() { vlicense LICENSE vdoc README.md