blob: 33a28f27ab906402d5b250f953e3d23c24331a8f (
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
|
# $NetBSD: Makefile,v 1.8 2022/11/02 19:39:47 bsiegert Exp $
DISTNAME= amfora-1.9.2
PKGREVISION= 7
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=makeworld-the-better-one/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= mj@mjturner.net
HOMEPAGE= https://github.com/makeworld-the-better-one/amfora/
COMMENT= Terminal browser for the Gemini protocol
LICENSE= gnu-gpl-v3
WRKSRC= ${WRKDIR}/${DISTNAME}
INSTALLATION_DIRS= bin share/applications
.include "go-modules.mk"
AMFORA_FLAGS+= -s -w
AMFORA_FLAGS+= -X main.version=${PKGVERSION_NOREV}
AMFORA_FLAGS+= -X main.builtBy=pkgsrc
do-build:
${RUN} cd ${WRKSRC} && ${_ULIMIT_CMD} ${PKGSRC_SETENV} ${MAKE_ENV} \
${GO} build -o amfora -ldflags "${AMFORA_FLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/amfora \
${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/amfora.desktop \
${DESTDIR}${PREFIX}/share/applications
.include "../../lang/go/go-module.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|