void-packages/srcpkgs/lua52-BitOp/template
2015-10-11 19:40:45 -04:00

25 lines
800 B
Bash

# Template file for 'lua52-BitOp'
pkgname=lua52-BitOp
version=1.0.2
revision=2
makedepends="lua52-devel lua52"
hostmakedepends="lua52"
depends="lua52>=5.2"
short_desc="C extension module for Lua which adds bitwise operations on numbers"
maintainer="Tj Vanderpoel (bougyman) <tj@rubyists.com>"
license="MIT"
homepage="http://bitop.luajit.org/"
distfiles="${homepage}/download/LuaBitOp-${version}.tar.gz"
checksum=1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99
build_style=gnu-makefile
wrksrc="LuaBitOp-${version}"
make_build_args="INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
replaces="lua-BitOp>=0"
do_install() {
mod_path="${DESTDIR}$(lua5.2 installpath.lua bit)"
lua_path=$(dirname $mod_path)
install -dm0755 "$lua_path"
install -p bit.so "$mod_path"
vlicense README
}