Lines 1-11
Link Here
|
1 |
PORTNAME= starfetch |
1 |
PORTNAME= starfetch |
2 |
DISTVERSION= 0.0.3 |
2 |
DISTVERSION= 0.0.4 |
3 |
CATEGORIES= astro |
3 |
CATEGORIES= astro |
4 |
MASTER_SITES= https://github.com/Haruno19/${PORTNAME}/releases/download/${DISTVERSION}/ |
4 |
MASTER_SITES= https://github.com/Haruno19/${PORTNAME}/releases/download/${DISTVERSION}/ |
5 |
|
5 |
|
6 |
MAINTAINER= DtxdF@disroot.org |
6 |
MAINTAINER= DtxdF@disroot.org |
7 |
COMMENT= Command line tool that displays constellations |
7 |
COMMENT= Command line tool that displays constellations |
8 |
WWW= https://github.com/Haruno19/starfetch/ |
8 |
WWW= https://github.com/Haruno19/starfetch |
9 |
|
9 |
|
10 |
LICENSE= GPLv3 |
10 |
LICENSE= GPLv3 |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
Lines 13-29
LICENSE_FILE= ${WRKSRC}/LICENSE
Link Here
|
13 |
CXXFLAGS+= -std=c++17 |
13 |
CXXFLAGS+= -std=c++17 |
14 |
|
14 |
|
15 |
post-patch: |
15 |
post-patch: |
16 |
@${REINPLACE_CMD} -e '/^string path = /s#=.*#= "${DATADIR}/";#' ${WRKSRC}/src/${PORTNAME}.cpp |
16 |
@${REINPLACE_CMD} -e '/^string path = /s#=.*#= "${DATADIR}/";#' ${WRKSRC}/src/starfetch.cpp |
17 |
|
17 |
|
18 |
do-build: |
18 |
do-build: |
19 |
${CXX} ${CXXFLAGS} ${WRKSRC}/src/${PORTNAME}.cpp -o ${WRKSRC}/${PORTNAME} |
19 |
${CXX} ${CXXFLAGS} ${WRKSRC}/src/starfetch.cpp -o ${WRKSRC}/starfetch |
20 |
|
20 |
|
21 |
do-install: |
21 |
do-install: |
22 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
22 |
${INSTALL_PROGRAM} ${WRKSRC}/starfetch ${STAGEDIR}${PREFIX}/bin/starfetch |
23 |
|
23 |
|
24 |
post-install: |
24 |
post-install: |
25 |
${MKDIR} ${STAGEDIR}${DATADIR} |
25 |
${MKDIR} ${STAGEDIR}${DATADIR} |
26 |
(cd ${WRKSRC}/res && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) |
26 |
cd ${WRKSRC}/res && ${FIND} . -name '._*' -exec ${RM} -f {} \; |
27 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
27 |
cd ${WRKSRC}/res && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
|
|
28 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/starfetch |
28 |
|
29 |
|
29 |
.include <bsd.port.mk> |
30 |
.include <bsd.port.mk> |