1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/www/shiori/Makefile
2024-02-11 10:39:17 +00:00

32 lines
630 B
Makefile

PORTNAME= shiori
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.0-rc.7
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= nivit@FreeBSD.org
COMMENT= Simple bookmark manager built with Go
WWW= https://github.com/go-shiori/shiori
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:1.21,modules
GO_MODULE= github.com/go-shiori/shiori
PLIST_FILES= bin/${PORTNAME}
BUILD_DATE= %FT%T
# fix `shiori version` output
post-patch:
${REINPLACE_CMD} \
-e 's/"dev"/"${DISTVERSION}"/1' \
-e 's/"none"/"${OPSYS}"/1' \
-e 's/"unknown"/"${BUILD_DATE:gmtime}"/1' \
${WRKSRC}/main.go \
${WRKSRC}/internal/model/main.go
.include <bsd.port.mk>