File tree 3 files changed +32
-1
lines changed
3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ ROCKSPEC =rockspecs/bint-0.*.rockspec
2
+
1
3
test :
2
4
lua tests.lua
3
5
lua examples/simple.lua
@@ -17,4 +19,10 @@ coverage:
17
19
clean :
18
20
rm -f * .out
19
21
22
+ install :
23
+ luarocks make --local $(ROCKSPEC )
24
+
25
+ upload :
26
+ luarocks upload --api-key=$(LUAROCKS_APIKEY ) $(ROCKSPEC )
27
+
20
28
.PHONY : test docs coverage clean
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ The full API reference and documentation can viewed in the
53
53
You can use luarocks to install quickly:
54
54
55
55
``` bash
56
- luarocks install https://raw.githubusercontent.com/edubart/lua- bint/master/rockspecs/bint-dev-1.rockspec
56
+ luarocks install bint
57
57
```
58
58
59
59
Or just copy the ` bint.lua ` file, the library is self contained in this single file with no dependencies.
Original file line number Diff line number Diff line change
1
+ package = " bint"
2
+ version = " 0.1.0-1"
3
+ source = {
4
+ url = " git://github.com/edubart/lua-bint.git" ,
5
+ tag = " v0.1.0"
6
+ }
7
+ description = {
8
+ summary = " Arbitrary precision integer arithmetic library in pure Lua" ,
9
+ detailed = [[ Small portable arbitrary precision integer arithmetic library in pure Lua for
10
+ computing with large integers.
11
+ ]] ,
12
+ homepage = " https://github.com/edubart/lua-bint" ,
13
+ license = " MIT"
14
+ }
15
+ dependencies = {
16
+ " lua >= 5.3" ,
17
+ }
18
+ build = {
19
+ type = " builtin" ,
20
+ modules = {
21
+ [' bint' ] = ' bint.lua' ,
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments