Skip to content

Commit 2f61812

Browse files
committed
Bump and adapt build scripts for repository transfer
1 parent 3c204fe commit 2f61812

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.deps/
22
mpack-src/
3+
*.src.rock

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ MPACK_LUA_VERSION_NOPATCH = $(shell echo -n $(MPACK_LUA_VERSION) | sed 's!\([0-9
99
LUA_URL ?= https://lua.org/ftp/lua-$(MPACK_LUA_VERSION).tar.gz
1010
LUAROCKS_URL ?= https://github.com/keplerproject/luarocks/archive/v2.2.0.tar.gz
1111
LUA_TARGET ?= linux
12-
MPACK_VERSION ?= 1.0.4
12+
MPACK_VERSION ?= 1.0.5
1313
MPACK_URL ?= https://github.com/tarruda/libmpack/archive/$(MPACK_VERSION).tar.gz
14+
LMPACK_VERSION ?= $(shell cat mpack-*.rockspec | sed -n "s/^local git_tag = '\\([^']\\+\\)'/\\1/p")
1415

1516
# deps location
1617
DEPS_DIR ?= $(shell pwd)/.deps/$(MPACK_LUA_VERSION)
@@ -65,6 +66,15 @@ mpack-src:
6566
mkdir -p $$dir && cd $$dir && \
6667
$(FETCH) $(MPACK_URL) | $(UNTGZ)
6768

69+
release: mpack-src
70+
rm -f libmpack-lua-$(LMPACK_VERSION).tar.gz
71+
tar cvfz libmpack-lua-$(LMPACK_VERSION).tar.gz \
72+
--transform 's,^,libmpack-lua-$(LMPACK_VERSION)/,' \
73+
mpack-*.rockspec lmpack.c mpack-src/src
74+
75+
clean:
76+
rm -rf mpack-src *.tar.gz *.src.rock *.so *.o
77+
6878
depsclean:
6979
rm -rf $(DEPS_DIR)
7080

@@ -127,4 +137,4 @@ else
127137
install -Dm755 $< "$(DESTDIR)$(LUA_CMOD_INSTALLDIR)/$<"
128138
endif
129139

130-
.PHONY: all depsclean install test gdb valgrind ci-test
140+
.PHONY: all clean depsclean install test gdb valgrind ci-test release

mpack-1.0.4-0.rockspec renamed to mpack-1.0.5-0.rockspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
local git_tag = '1.0.4'
1+
local git_tag = '1.0.5'
22

33
package = 'mpack'
44
version = git_tag .. '-0'
55
source = {
6-
url = 'https://github.com/tarruda/libmpack/archive/' .. git_tag .. '.tar.gz',
7-
dir = 'libmpack-' .. git_tag .. '/binding/lua',
6+
url = 'https://github.com/libmpack/libmpack-lua/releases/download/' ..
7+
git_tag .. '/libmpack-lua-' .. git_tag .. '.tar.gz'
88
}
99

1010
description = {

0 commit comments

Comments
 (0)