lua51-mpack: fix cross

This commit is contained in:
Michal Vasilek 2022-06-15 10:29:43 +02:00 committed by Echo
parent 4b49de992c
commit 1f98ad9e2b
2 changed files with 15 additions and 5 deletions

View File

@ -0,0 +1,11 @@
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,7 @@
CFLAGS += -DLUA_C89_NUMBERS
endif
-LUA_IMPL ?= lua-$(MPACK_LUA_VERSION_NOPATCH)
+LUA_IMPL ?= lua$(MPACK_LUA_VERSION_NOPATCH)
LUA_INCLUDE ?= $(shell $(PKG_CONFIG) --cflags $(LUA_IMPL) 2>/dev/null || echo "-I/usr/include/lua$(MPACK_LUA_VERSION_NOPATCH)")
INCLUDES = $(LUA_INCLUDE)
LIBS =

View File

@ -3,7 +3,10 @@ pkgname=lua51-mpack
version=1.0.7
revision=1
wrksrc="libmpack-lua-${version}"
hostmakedepends="libtool"
build_style=gnu-makefile
make_use_env=yes
make_build_args="USE_SYSTEM_MPACK=1 USE_SYSTEM_LUA=1"
hostmakedepends="libtool pkg-config"
makedepends="lua51-devel libmpack-devel"
short_desc="Simple implementation of MessagePack for Lua 5.1"
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
@ -12,10 +15,6 @@ homepage="https://github.com/libmpack/libmpack-lua"
distfiles="https://github.com/libmpack/libmpack-lua/archive/${version}.tar.gz"
checksum=2ebe9c8972c378040c9b8505f5fb40a0c64d990cd68be6a62989362b18294d0a
do_build() {
make ${makejobs} USE_SYSTEM_MPACK=1 USE_SYSTEM_LUA=1
}
do_install() {
vinstall mpack.so 755 usr/lib/lua/5.1
vlicense LICENSE-MIT