59d7fb0955
as should probably have been done to begin with. Remove per-package hacks.
33 lines
916 B
Makefile
33 lines
916 B
Makefile
# $NetBSD: Makefile,v 1.4 2020/07/11 15:14:29 nia Exp $
|
|
|
|
# Keep versioning in sync with the luarocks rockspec.
|
|
DISTNAME= lua-compat53-0.9
|
|
PKGNAME= ${LUA_PKGPREFIX}-bit32-5.3.5
|
|
CATEGORIES= devel lua
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=keplerproject/}
|
|
GITHUB_PROJECT= lua-compat-5.3
|
|
GITHUB_TAG= v${DISTNAME:S/^lua-compat53-//1}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://luarocks.org/modules/siffiejoe/bit32
|
|
COMMENT= Lua 5.2 bit manipulation library
|
|
LICENSE= mit
|
|
|
|
CONFLICTS+= ${LUA_PKGPREFIX}-bitlib-[0-9]*
|
|
SUPERSEDES+= ${LUA_PKGPREFIX}-bitlib-[0-9]*
|
|
|
|
INSTALLATION_DIRS+= ${LUA_CDIR}
|
|
|
|
pre-build:
|
|
${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_LIB} ${WRKSRC}/bit32.so \
|
|
${DESTDIR}${PREFIX}/${LUA_CDIR}/bit32.so
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/tests && LUA_CPATH=${WRKSRC}/?.so \
|
|
${LUA_INTERPRETER} test-bit32.lua
|
|
|
|
.include "../../lang/lua/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|