blob: e9c06a6e53826a6e45352efa352766d231bf01ea (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
PORTNAME= leftwm
DISTVERSION= 0.4.2
PORTREVISION= 2
CATEGORIES= x11-wm
MAINTAINER= ports@FreeBSD.org
COMMENT= Tiling window manager for Adventurers
WWW= https://leftwm.org/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= cargo desktop-file-utils xorg
USE_GITHUB= yes
USE_XORG= xinerama xrandr
CARGO_INSTALL_PATH= ./leftwm
OPTIONS_DEFINE= DOCS THEMES
OPTIONS_DEFAULT= THEMES
OPTIONS_SUB= yes
THEMES_DESC= LeftWM Basic Themes
post-install:
.for l in leftwm-state leftwm-worker leftwm-check \
leftwm-command leftwm
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${l}
.endfor
${MKDIR} ${STAGEDIR}${LOCALBASE}/share/xsessions
(cd ${WRKSRC} && ${INSTALL_DATA} leftwm.desktop \
${STAGEDIR}${LOCALBASE}/share/xsessions/)
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for l in CHANGELOG CONTRIBUTING.md README.md
${INSTALL_MAN} ${WRKSRC}/${l} ${STAGEDIR}${DOCSDIR}
.endfor
post-install-THEMES-on:
cd ${WRKSRC} && ${COPYTREE_SHARE} themes \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
|