-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathlua-luv.yaml
69 lines (60 loc) · 1.54 KB
/
lua-luv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package:
name: lua-luv
version: 1.48.0.1
epoch: 0
description: "Bare libuv bindings for Lua"
copyright:
- license: Apache-2.0
# transform melange version 1.45.0.0 => 1.45.0-0
var-transforms:
- from: ${{package.version}}
match: \.(\d+)$
replace: -$1
to: mangled-package-version
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cmake
- libuv-dev
- luajit-dev
- samurai
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/luvit/luv
tag: ${{vars.mangled-package-version}}
expected-commit: 693951ef762058a8a9fdc76ef7d9e465d6bdd8cc
- runs: |
# TODO: Package lua-compat5.3
make deps/lua-compat-5.3/c-api
cmake -B build -G Ninja \
-DWITH_SHARED_LIBUV=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLUA_BUILD_TYPE=System \
-DBUILD_MODULE=OFF \
-DLUA_COMPAT53_DIR=deps/lua-compat-5.3 \
-DBUILD_SHARED_LIBS=ON
cmake --build build
DESTDIR="${{targets.destdir}}" cmake --install build
- runs: |
rockdir=${{targets.destdir}}/usr/lib/luarocks/rocks-common/luv/${{vars.mangled-package-version}}
mkdir -p $rockdir
echo "rock_manifest = {}" > "$rockdir"/rock_manifest
subpackages:
- name: lua-luv-dev
pipeline:
- uses: split/dev
description: lua-luv dev
update:
enabled: true
version-transform:
- match: \-
replace: .
github:
identifier: luvit/luv
strip-prefix: v
use-tag: true