2015-10-01 20:07:55 +00:00
|
|
|
# Template file for 'lua52-BitOp'
|
|
|
|
pkgname=lua52-BitOp
|
2014-12-13 19:55:26 +00:00
|
|
|
version=1.0.2
|
2015-10-11 23:40:45 +00:00
|
|
|
revision=2
|
2015-10-01 20:07:55 +00:00
|
|
|
makedepends="lua52-devel lua52"
|
|
|
|
hostmakedepends="lua52"
|
|
|
|
depends="lua52>=5.2"
|
2014-12-13 19:55:26 +00:00
|
|
|
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}"
|
2015-10-01 20:07:55 +00:00
|
|
|
make_build_args="INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/lua5.2"
|
|
|
|
replaces="lua-BitOp>=0"
|
2014-12-13 19:55:26 +00:00
|
|
|
|
|
|
|
do_install() {
|
2015-10-01 20:07:55 +00:00
|
|
|
mod_path="${DESTDIR}$(lua5.2 installpath.lua bit)"
|
2014-12-13 19:55:26 +00:00
|
|
|
lua_path=$(dirname $mod_path)
|
|
|
|
install -dm0755 "$lua_path"
|
|
|
|
install -p bit.so "$mod_path"
|
2015-10-01 20:07:55 +00:00
|
|
|
vlicense README
|
2014-12-13 19:55:26 +00:00
|
|
|
}
|