blob: 3cb226300b5435389a4bf850304591308bc3e971 (
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
|
# $NetBSD: Makefile,v 1.3 2020/12/09 11:05:58 nia Exp $
DISTNAME= lua-date-2.1.3
PKGNAME= ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
CATEGORIES= time lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=Tieske/}
GITHUB_PROJECT= date
GITHUB_TAG= version_${PKGVERSION_NOREV}
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://tieske.github.io/date/
COMMENT= Date and Time module for Lua 5.x
LICENSE= mit
TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
TEST_DEPENDS+= ${LUA_PKGPREFIX}-cov-[0-9]*:../../devel/lua-cov
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
USE_LANGUAGES= # none
NO_BUILD= yes
INSTALLATION_DIRS+= ${LUA_LDIR}
do-install:
${INSTALL_DATA} ${WRKSRC}/src/date.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/date.lua
do-test:
cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"
|