summaryrefslogtreecommitdiff
path: root/x11/swayrbar/Makefile
blob: b51d13d7885262a9f99613ee25cd7661cfaa6ab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PORTNAME=	swayrbar
DISTVERSION=	0.3.3
PORTREVISION=	1
CATEGORIES=	x11
MASTER_SITES=	CRATESIO
# XXX Teach USES=cargo to have proper default
DISTFILES=	${CARGO_DIST_SUBDIR}/${DISTNAME}${CARGO_CRATE_EXT}

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	status_command for swaybar
WWW=		https://sr.ht/~tsdh/swayr/#swayrbar

LICENSE=	GPLv3+
LICENSE_FILE=	${_LICENSE_STORE}/GPLv3

USES=		cargo
PLIST_FILES=	bin/${PORTNAME}

post-patch:
# Respect PREFIX for config
	@${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
		${WRKSRC}/src/bar.rs \
		${WRKSRC}/src/config.rs \
		${WRKSRC}/src/shared/cfg.rs

.include <bsd.port.mk>