void-packages/srcpkgs/lua51-bitlib/template

26 lines
751 B
Bash
Raw Normal View History

2017-03-30 11:50:18 +02:00
# Template file for 'lua51-bitlib'
pkgname=lua51-bitlib
version=5.3.0
revision=1
wrksrc="lua-compat-5.2-bitlib-${version}"
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="lua51-devel"
depends="lua51"
short_desc="An implementation of lua 5.2's bit32 library for lua 5.1"
maintainer="Christopher Brannon <chris@the-brannons.com>"
license="MIT"
homepage="https://github.com/keplerproject/lua-compat-5.2"
distfiles="https://github.com/keplerproject/lua-compat-5.2/archive/bitlib-${version}.tar.gz"
checksum=dc1197b9e996b7bd2c6a679b86ed75106d5722424b3e731b8084f56626ec5552
pre_build() {
# Makefile taken from Alpine's aport.
cp "${FILESDIR}/Makefile" .
}
do_install() {
vinstall 5.1/bit32.so 755 usr/lib/lua/5.1
vlicense LICENSE
}