summaryrefslogtreecommitdiff
path: root/chat/senpai/Makefile
blob: 78f3d3612f36509143e1146ac4050c64c58213bc (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
# $NetBSD: Makefile,v 1.4 2022/11/02 19:39:51 bsiegert Exp $

DISTNAME=	senpai-v0.1.0
PKGNAME=	${DISTNAME:S,-v,-,}
PKGREVISION=	3
CATEGORIES=	chat
MASTER_SITES=	-https://git.sr.ht/~taiite/senpai/archive/v${PKGVERSION_NOREV}.tar.gz

MAINTAINER=	pin@NetBSD.org
HOMEPAGE=	https://git.sr.ht/~taiite/senpai/
COMMENT=	Modern terminal IRC client
LICENSE=	isc

BUILD_DEPENDS+=		scdoc-[0-9]*:../../textproc/scdoc

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5
GO_BUILD_PATTERN=	./...

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/.gopath/bin/senpai \
		${DESTDIR}${PREFIX}/bin

# Generate manpages and install them
post-install:
	scdoc < ${WRKSRC}/doc/senpai.1.scd > ${WRKSRC}/doc/senpai.1
	scdoc < ${WRKSRC}/doc/senpai.5.scd > ${WRKSRC}/doc/senpai.5
	${INSTALL_MAN} ${WRKSRC}/doc/senpai.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/senpai.1
	${INSTALL_MAN} ${WRKSRC}/doc/senpai.5 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/senpai.5

.include "go-modules.mk"

.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"