blob: 0ac3577bb6508a15a7e2878f9f88792aac7cebaf (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
PORTNAME= xplr
DISTVERSIONPREFIX= v
DISTVERSION= 0.21.2
PORTREVISION= 2
CATEGORIES= misc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Hackable, minimal, fast TUI file explorer
WWW= https://xplr.dev
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo compiler desktop-file-utils gmake luajit
USE_GITHUB= yes
GH_ACCOUNT= sayanarijit
BINARY_ALIAS= make=gmake
PORTDOCS= CODE_OF_CONDUCT.md README.md RELEASE.md
_EXAMPLES= ${WRKSRC}/src/init.lua
PORTEXAMPLES= ${_EXAMPLES:T}
OPTIONS_DEFINE= DOCS EXAMPLES
_ASSETS= ${WRKSRC}/assets
_ICONS= ${STAGEDIR}${PREFIX}/share/icons/hicolor
.include <bsd.port.pre.mk>
.if ${ARCH} == powerpc && ${COMPILER_VERSION} < 140
BUILD_DEPENDS+= as:devel/binutils
CFLAGS+= -fno-integrated-as
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${_ASSETS}/desktop/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
@${MKDIR} ${_ICONS}/scalable/apps
${INSTALL_DATA} ${_ASSETS}/icon/${PORTNAME}.svg \
${_ICONS}/scalable/apps
.for res in 16 32 64 128
@${MKDIR} ${_ICONS}/${res}x${res}/apps
.for icon in ico png
${INSTALL_DATA} ${_ASSETS}/icon/${PORTNAME}${res}.${icon} \
${_ICONS}/${res}x${res}/apps/${PORTNAME}.${icon}
.endfor
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${_EXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>
|