void-packages/srcpkgs/lua-BitOp/template
Juan RP 1c5f4690e6 xbps-src: always require current srcpkgs version in build dependencies.
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.

This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00

23 lines
677 B
Bash

# Template file for 'lua-BitOp'
pkgname=lua-BitOp
version=1.0.2
revision=1
makedepends="lua-devel lua"
hostmakedepends="lua"
depends="lua>=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}"
do_install() {
mod_path="${DESTDIR}$(lua installpath.lua bit)"
lua_path=$(dirname $mod_path)
install -dm0755 "$lua_path"
install -p bit.so "$mod_path"
}