summaryrefslogtreecommitdiff
path: root/misc/cowsay/Makefile
blob: a8e432154e6c6637d1aeb16bcbcbf1bacf25896d (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.26 2022/06/28 11:34:47 wiz Exp $

DISTNAME=		cowsay-3.04
PKGREVISION=		6
CATEGORIES=		misc
MASTER_SITES=		${MASTER_SITE_GITHUB:=tnalpgge/}
GITHUB_PROJECT=		rank-amateur-cowsay
GITHUB_TAG=		${PKGNAME_NOREV}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://github.com/tnalpgge/rank-amateur-cowsay
COMMENT=		Configurable talking cow
LICENSE=		gnu-gpl-v3

USE_TOOLS+=		perl:run

SUBST_CLASSES+=		pap
SUBST_STAGE.pap=	pre-install # after patch to avoid sneaking into patches
SUBST_MESSAGE.pap=	Adjusting paths to perl and the cows
SUBST_FILES.pap=	cowsay cowsay.1
SUBST_SED.pap=		-e "s|%BANGPERL%|!${PERL5}|"
SUBST_SED.pap+=		-e "s|%PREFIX%|${PREFIX}|"

NO_CONFIGURE=		yes
NO_BUILD=		yes

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/cows

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/cowsay ${DESTDIR}${PREFIX}/bin
	cd ${DESTDIR}${PREFIX}/bin; ${LN} -s cowsay cowthink
	${INSTALL_DATA} ${WRKSRC}/cowsay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	cd ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; ${LN} -s cowsay.1 cowthink.1
	${INSTALL_DATA} ${WRKSRC}/cows/*.cow ${DESTDIR}${PREFIX}/share/cows

.include "../../mk/bsd.pkg.mk"