diff --git a/srcpkgs/lua51-mpack/patches/cross.patch b/srcpkgs/lua51-mpack/patches/cross.patch new file mode 100644 index 00000000000..638c0a7ac18 --- /dev/null +++ b/srcpkgs/lua51-mpack/patches/cross.patch @@ -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 = diff --git a/srcpkgs/lua51-mpack/template b/srcpkgs/lua51-mpack/template index f87c6b51a25..d5192f89830 100644 --- a/srcpkgs/lua51-mpack/template +++ b/srcpkgs/lua51-mpack/template @@ -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 " @@ -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