-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathpkg.yaml
More file actions
37 lines (35 loc) · 995 Bytes
/
pkg.yaml
File metadata and controls
37 lines (35 loc) · 995 Bytes
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
name: libseccomp
variant: scratch
shell: /bin/bash
install:
- build-base
- bash
- gperf
dependencies:
- image: cgr.dev/chainguard/wolfi-base@{{ .WOLFI_BASE_REF }}
steps:
- sources:
- url: https://github.com/seccomp/libseccomp/releases/download/v{{ .LIBSECCOMP_VERSION }}/libseccomp-{{ .LIBSECCOMP_VERSION }}.tar.gz
destination: libseccomp.tar.gz
sha256: {{ .LIBSECCOMP_SHA256 }}
sha512: {{ .LIBSECCOMP_SHA512 }}
prepare:
- |
tar -xzf libseccomp.tar.gz --strip-components=1
mkdir build
cd build
../configure \
--prefix=/usr/local/glibc
build:
- |
cd build
make -j $(nproc)
install:
- |
cd build
make install DESTDIR=/rootfs
# we only need the libs and headers, remove everything else
find /rootfs/usr/local/ -type d \( -name bin -o -name sbin -o -name share \) -prune -exec rm -rf {} \;
finalize:
- from: /rootfs
to: /rootfs