mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-06 06:17:11 +02:00
Move modules, firmware and libraries to accommodate usrmerged rootfs Only use network where needed via new bldr, pre-download Go dependencies in prepare step, improve Go cache Bump xen-guest-agent to make it build with current Alpine Rust Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com>
33 lines
956 B
YAML
33 lines
956 B
YAML
name: zlib-zfs
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
dependencies:
|
|
- stage: base
|
|
steps:
|
|
- sources:
|
|
- url: https://zlib.net/fossils/zlib-{{ .ZLIB_VERSION }}.tar.gz
|
|
destination: zlib.tar.gz
|
|
sha256: 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
|
|
sha512: 580677aad97093829090d4b605ac81c50327e74a6c2de0b85dd2e8525553f3ddde17556ea46f8f007f89e435493c9a20bc997d1ef1c1c2c23274528e3c46b94f
|
|
prepare:
|
|
- |
|
|
tar -xf zlib.tar.gz --strip-components=1
|
|
mkdir build
|
|
cd build
|
|
|
|
../configure \
|
|
--prefix=/usr/local
|
|
build:
|
|
- |
|
|
cd build
|
|
make -j $(nproc)
|
|
install:
|
|
- |
|
|
cd build
|
|
make DESTDIR=/rootfs install
|
|
# 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
|