File tree Expand file tree Collapse file tree
images/packages/binaries/libbrotlicommon Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ package:
1515 glib2 : 2.82.5
1616 acl : 2.3.1
1717 bzip2 : bzip2-1.0.8
18+ libbrotlicommon : v1.1.0
1819 file : FILE5_45
Original file line number Diff line number Diff line change 1+ ---
2+ image : {{ $.ImageType }}/{{ $.ImageName }}
3+ final : false
4+ fromImage : builder/scratch
5+ import :
6+ - image : {{ $.ImageType }}/{{ $.ImageName }}-builder
7+ add : /out
8+ to : /libbrotlicommon
9+ before : setup
10+
11+ ---
12+ {{- $version := get $.Package $.ImageName }}
13+ {{- $gitRepoUrl := "brotli.git" }}
14+
15+ {{- $name := print $.ImageName "-dependencies" -}}
16+ {{- define "$name" -}}
17+ packages :
18+ - gcc
19+ - git cmake make
20+ - make bison python3
21+ {{- end -}}
22+
23+ {{ $builderDependencies := include "$name" . | fromYaml }}
24+
25+ image : {{ $.ImageType }}/{{ $.ImageName }}-builder
26+ final : false
27+ fromImage : builder/alt
28+ secrets :
29+ - id : SOURCE_REPO
30+ value : {{ $.SOURCE_REPO_GIT }}
31+ shell :
32+ beforeInstall :
33+ - |
34+ apt-get update && apt-get install -y \
35+ {{ $builderDependencies.packages | join " " }}
36+ rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin
37+
38+ install :
39+ - |
40+ OUTDIR=/out
41+ mkdir -p ~/.ssh && echo "StrictHostKeyChecking accept-new" > ~/.ssh/config
42+
43+ git clone --depth=1 $(cat /run/secrets/SOURCE_REPO)/{{ $gitRepoUrl }} --branch {{ $version }} /src
44+
45+ mkdir /build
46+ cd /build
47+
48+ cmake -DCMAKE_BUILD_TYPE=Release \
49+ -DCMAKE_INSTALL_PREFIX=/usr \
50+ -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \
51+ /src && \
52+
53+
54+ make -j$(nproc)
55+
56+ make DESTDIR=$OUTDIR install
You can’t perform that action at this time.
0 commit comments