[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / translate-shell

File: [cvs.NetBSD.org] / pkgsrc / textproc / translate-shell / Makefile (download)

Revision 1.26, Wed Oct 26 10:32:02 2022 UTC (3 months, 1 week ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.25: +2 -1 lines

*: bump PKGREVISION for libunistring shlib major bump

# $NetBSD: Makefile,v 1.26 2022/10/26 10:32:02 wiz Exp $

DISTNAME=	translate-shell-0.9.7
PKGREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_GITHUB:=soimort/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	leot@NetBSD.org
HOMEPAGE=	https://www.soimort.org/translate-shell/
COMMENT=	Command-line translator
LICENSE=	unlicense

USE_LANGUAGES=	# none
USE_TOOLS+=	bash:run gawk:run

DEPENDS+=	rlwrap-[0-9]*:../../misc/rlwrap

SUBST_CLASSES+=		shebang
SUBST_FILES.shebang=	build/trans
SUBST_SED.shebang=	-e 's,/usr/bin/env bash,${BASH},'
SUBST_STAGE.shebang=	post-build

BUILD_TARGET=		build

INSTALLATION_DIRS+=	bin ${PKGMANDIR}/man1

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/build/trans ${DESTDIR}${PREFIX}/bin/
	${INSTALL_MAN} ${WRKSRC}/man/trans.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

.include "../../audio/mpg123/buildlink3.mk"
.include "../../converters/fribidi/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"