aboutsummaryrefslogtreecommitdiff
path: root/astro/starfetch
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <DtxdF@disroot.org>2023-08-10 08:46:40 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2023-08-13 09:32:55 +0000
commitd0f288a5599116fc41163034ebd62a3d8c8e6277 (patch)
tree8d13d7c13f88d1e1e9c06e66df2bb442458b1fcd /astro/starfetch
parent7dbdc9f4bfb9b1f28fb868ce4417cc76e2fdb52b (diff)
downloadports-d0f288a5599116fc41163034ebd62a3d8c8e6277.tar.gz
ports-d0f288a5599116fc41163034ebd62a3d8c8e6277.zip
Diffstat (limited to 'astro/starfetch')
-rw-r--r--astro/starfetch/Makefile18
-rw-r--r--astro/starfetch/distinfo6
2 files changed, 10 insertions, 14 deletions
diff --git a/astro/starfetch/Makefile b/astro/starfetch/Makefile
index a68e44bed04a..eea241fce5d3 100644
--- a/astro/starfetch/Makefile
+++ b/astro/starfetch/Makefile
@@ -1,11 +1,11 @@
PORTNAME= starfetch
-DISTVERSION= 0.0.3
+DISTVERSION= 0.0.4
CATEGORIES= astro
-MASTER_SITES= https://github.com/Haruno19/${PORTNAME}/releases/download/${DISTVERSION}/
+MASTER_SITES= https://github.com/Haruno19/starfetch/releases/download/${DISTVERSION}/
MAINTAINER= DtxdF@disroot.org
COMMENT= Command line tool that displays constellations
-WWW= https://github.com/Haruno19/starfetch/
+WWW= https://github.com/Haruno19/starfetch
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
@@ -13,17 +13,13 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
CXXFLAGS+= -std=c++17
post-patch:
- @${REINPLACE_CMD} -e '/^string path = /s#=.*#= "${DATADIR}/";#' ${WRKSRC}/src/${PORTNAME}.cpp
+ @${REINPLACE_CMD} -e '/^string path = /s#=.*#= "${DATADIR}/";#' ${WRKSRC}/src/starfetch.cpp
do-build:
- ${CXX} ${CXXFLAGS} ${WRKSRC}/src/${PORTNAME}.cpp -o ${WRKSRC}/${PORTNAME}
+ ${CXX} ${CPPFLAGS} ${CXXFLAGS} ${LDFLAGS} ${WRKSRC}/src/starfetch.cpp -o ${WRKSRC}/starfetch
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-
-post-install:
- ${MKDIR} ${STAGEDIR}${DATADIR}
- (cd ${WRKSRC}/res && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
- ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/starfetch ${STAGEDIR}${PREFIX}/bin/starfetch
+ (cd ${WRKSRC}/res && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} '! -name \._*')
.include <bsd.port.mk>
diff --git a/astro/starfetch/distinfo b/astro/starfetch/distinfo
index de99ddcb44c0..1fc6c2b948a5 100644
--- a/astro/starfetch/distinfo
+++ b/astro/starfetch/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1666478439
-SHA256 (starfetch-0.0.3.tar.gz) = 4afb6e37c72464feb1813a574fe5a60c285e08ebfbf1f3e8f2b9318573c7497a
-SIZE (starfetch-0.0.3.tar.gz) = 399822
+TIMESTAMP = 1691651185
+SHA256 (starfetch-0.0.4.tar.gz) = 10899d964db3f8cdf91f26e6e4ee60f558ab6c8a6c7778f64f5395affbf3de2b
+SIZE (starfetch-0.0.4.tar.gz) = 591205