New package: sent-0.1
This commit is contained in:
parent
dce7b00fa9
commit
5e316485a1
2 changed files with 68 additions and 0 deletions
41
srcpkgs/sent/files/config.h
Normal file
41
srcpkgs/sent/files/config.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/* 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} },
|
||||
};
|
27
srcpkgs/sent/template
Normal file
27
srcpkgs/sent/template
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Template file for 'sent'
|
||||
pkgname=sent
|
||||
version=0.1
|
||||
revision=1
|
||||
makedepends="libX11-devel libXft-devel freetype-devel libpng-devel"
|
||||
short_desc="Suckless simple plaintext presentation tool"
|
||||
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
||||
license="MIT"
|
||||
homepage="http://tools.suckless.org/sent"
|
||||
distfiles="http://dl.suckless.org/tools/sent-${version}.tar.gz"
|
||||
checksum=9f6aa5bbeaf83bb584a83f43709deb1c29ce0d388d0b3af5b0cc6010f1c0d025
|
||||
|
||||
do_build() {
|
||||
cp ${FILESDIR}/config.h config.h
|
||||
sed -i 's|^CFLAGS +=|override CFLAGS +=|g' config.mk
|
||||
sed -i 's|^LDFLAGS +=|override LDFLAGS +=|g' config.mk
|
||||
sed -i "s|/usr/include|$XBPS_CROSS_BASE/usr/include|g" config.mk
|
||||
sed -i "s|/usr/lib|$XBPS_CROSS_BASE/usr/lib|g" config.mk
|
||||
make ${makejobs} CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
|
||||
X11INC="$XBPS_CROSS_BASE/usr/include/X11" X11LIB="$XBPS_CROSS_BASE/usr/lib"
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR="${DESTDIR}" PREFIX=/usr install
|
||||
vlicense LICENSE
|
||||
vdoc README.md
|
||||
}
|
Loading…
Reference in a new issue