This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
bzip2.yaml
76 lines (63 loc) · 1.77 KB
/
bzip2.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
70
71
72
73
74
75
76
package:
name: bzip2
version: 1.0.8
epoch: 0
description: "a library implementing the bzip2 compression algorithms"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: MPL-2.0 AND MIT
dependencies:
runtime:
environment:
contents:
repositories:
- https://packages.wolfi.dev/bootstrap/stage2
keyring:
- https://packages.wolfi.dev/bootstrap/stage2/wolfi-signing.rsa.pub
packages:
- wolfi-baselayout
- busybox
- ca-certificates-bundle
- build-base
- make
pipeline:
- uses: fetch
with:
uri: https://sourceware.org/pub/bzip2/bzip2-${{package.version}}.tar.gz
expected-sha256: ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
- uses: patch
with:
patches: bzip2-1.0.2-progress.patch
- uses: patch
with:
patches: bzip2-1.0.3-no-test.patch
- uses: patch
with:
patches: bzip2-1.0.4-makefile-CFLAGS.patch
- uses: patch
with:
patches: bzip2-1.0.4-man-links.patch
- uses: patch
with:
patches: saneso.patch
- runs: |
sed -i \
-e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' \
-e 's:ln -s -f $(PREFIX)/bin/:ln -s :' \
Makefile
sed -i \
-e "s:1\.0\.4:${{package.version}}:" \
bzip2.1 bzip2.txt Makefile-libbz2_so manual.*
- runs: |
make -f Makefile-libbz2_so all
make all
- runs: |
make PREFIX="${{targets.destdir}}/usr" install
install -D libbz2.so.${{package.version}} "${{targets.destdir}}"/usr/lib/libbz2.so.${{package.version}}
ln -s libbz2.so.${{package.version}} "${{targets.destdir}}"/usr/lib/libbz2.so
ln -s libbz2.so.${{package.version}} "${{targets.destdir}}"/usr/lib/libbz2.so.1
- uses: strip