New package: lua51-bitlib-5.3.0
This commit is contained in:
parent
4da3a6dbe9
commit
5b44207a44
2 changed files with 36 additions and 0 deletions
11
srcpkgs/lua51-bitlib/files/Makefile
Normal file
11
srcpkgs/lua51-bitlib/files/Makefile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
|
||||||
|
|
||||||
|
LUAVER = 5.1
|
||||||
|
|
||||||
|
LUAPC := lua$(LUAVER)
|
||||||
|
LUA_CFLAGS := $(shell pkg-config --cflags $(LUAPC))
|
||||||
|
|
||||||
|
$(LUAVER)/bit32.so: lbitlib.c
|
||||||
|
mkdir -p $(LUAVER)
|
||||||
|
$(CC) -I c-api $(CFLAGS) $(LUA_CFLAGS) -shared -fPIC $(LDFLAGS) -o $@ $<
|
||||||
|
|
25
srcpkgs/lua51-bitlib/template
Normal file
25
srcpkgs/lua51-bitlib/template
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue