forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libhyper.yaml
51 lines (44 loc) · 1.41 KB
/
libhyper.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
package:
name: libhyper
version: 1.5.2
epoch: 0
description: "An HTTP library for Rust"
copyright:
- license: MIT
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- openssf-compiler-options
- patchelf
- rust
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/hyperium/hyper
tag: v${{package.version}}
expected-commit: 30f2961e89eb306780d856e6e2c1ee10ffbbafd2
- runs: |
RUSTFLAGS="--cfg hyper_unstable_ffi -Clink-arg=-Wl,-soname=libhyper.so.1" cargo rustc --features client,http1,http2,ffi --crate-type cdylib --release
# Need to manually set soname since cargo doesn't support that
patchelf --set-soname libhyper.so.1 target/release/libhyper.so
- runs: |
mkdir -p ${{targets.destdir}}/usr/lib
mv target/release/libhyper.so ${{targets.destdir}}/usr/lib/libhyper.so.${{package.version}}
ln -s libhyper.so.${{package.version}} ${{targets.destdir}}/usr/lib/libhyper.so.1
ln -s libhyper.so.1 ${{targets.destdir}}/usr/lib/libhyper.so
subpackages:
- name: "libhyper-dev"
description: "headers for libhyper"
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/include
mv capi/include/hyper.h ${{targets.subpkgdir}}/usr/include
update:
enabled: true
github:
identifier: hyperium/hyper
strip-prefix: v