View | Details | Raw Unified | Return to bug 257680
Collapse All | Expand All

(-)b/x11/dwmblocks/Makefile (+44 lines)
Added Link Here
1
# x11/dwmblocks
2
3
PORTNAME=	dwmblocks
4
DISTVERSION=	g20201227
5
CATEGORIES=	x11
6
7
MAINTAINER=	echo@lethedata.com
8
COMMENT=	Modular status bar for dwm
9
10
LICENSE=	ISCL
11
LICENSE_FILE=	${WRKSRC}/LICENSE
12
13
LIB_DEPENDS=    libX11.so:x11/libX11
14
15
USES=		xorg
16
USE_XORG=	x11
17
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	torrinfail
20
GH_TAGNAME=	96cbb45
21
22
PLIST_FILES=	bin/dwmblocks
23
24
pre-everything::
25
	@${ECHO_MSG} "You can build st with your own blocks.h using the BLK_CONF knob:"
26
	@${ECHO_MSG} "make BLK_CONF=/path/to/st/blocks.h install clean"
27
	@${ECHO_MSG} "Signal = 65 + Update Signal number"
28
29
.if defined(BLK_CONF)
30
post-extract:
31
	@${ECHO_MSG} "creating symlink blocks.h from ${BLK_CONF}"
32
	@${LN} -sf ${BLK_CONF} ${WRKSRC}/blocks.h
33
.endif
34
35
post-patch:
36
	@${REINPLACE_CMD} -E \
37
		-e "s|(LDFLAGS[[:space:]]*)= |\1= -L/usr/local/lib -I/usr/local/include |" \
38
		-e "s|output|all|" \
39
		${WRKSRC}/Makefile
40
41
post-install:
42
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dwmblocks
43
44
.include <bsd.port.mk>
(-)b/x11/dwmblocks/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1626356949
2
SHA256 (torrinfail-dwmblocks-g20201227-96cbb45_GH0.tar.gz) = 48271ddb6a4fb0e40cb2f855923c3138e56179b4eec13c5181dfad884681137b
3
SIZE (torrinfail-dwmblocks-g20201227-96cbb45_GH0.tar.gz) = 3626
(-)b/x11/dwmblocks/files/patch-blocks.def.h (+15 lines)
Added Link Here
1
--- blocks.def.h.orig	2020-12-27 20:43:03 UTC
2
+++ blocks.def.h
3
@@ -1,9 +1,8 @@
4
 //Modify this file to change what commands output to your statusbar, and recompile using the make command.
5
 static const Block blocks[] = {
6
-	/*Icon*/	/*Command*/		/*Update Interval*/	/*Update Signal*/
7
-	{"Mem:", "free -h | awk '/^Mem/ { print $3\"/\"$2 }' | sed s/i//g",	30,		0},
8
-
9
-	{"", "date '+%b %d (%a) %I:%M%p'",					5,		0},
10
+	/*Icon*/	/*Command*/								/*Update Interval*/	/*Update Signal*/
11
+	{"", "uname -n | sed 's/^/ /'",								0,				0},
12
+	{"", "date '+%F %R'",									60,				0},
13
 };
14
 
15
 //sets delimeter between status commands. NULL character ('\0') means no delimeter.
(-)b/x11/dwmblocks/pkg-descr (+6 lines)
Added Link Here
1
Modular status bar for dwm written in c.
2
3
The statusbar is made from text output from commandline programs.
4
Blocks are added and removed by editing the blocks.h header file.
5
6
WWW: https://github.com/torrinfail/dwmblocks/

Return to bug 257680