forked from siderolabs/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg.yaml
44 lines (43 loc) · 1.39 KB
/
pkg.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
name: util-linux-tools
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- sources:
- url: https://www.kernel.org/pub/linux/utils/util-linux/v{{ regexReplaceAll ".\\d+$" .UTIL_LINUX_VERSION "${1}" }}/util-linux-{{ regexReplaceAll "\\.0$" .UTIL_LINUX_VERSION "${1}" }}.tar.xz
destination: util-linux.tar.xz
sha256: 7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f
sha512: a2de1672f06ca5d2d431db1265a8499808770c3781019ec4a3a40170df4685826d8e3ca120841dcc5df4681ca8c935a993317bd0dc70465b21bf8e0efef65afa
prepare:
- |
tar -xJf util-linux.tar.xz --strip-components=1
mkdir build
cd build
../configure \
--prefix=/usr/local \
--without-python \
--disable-bash-completion \
--disable-asciidoc \
--disable-makeinstall-chown \
--without-systemd \
--without-systemdsystemunitdir \
--disable-all-programs \
--enable-libmount \
--enable-libblkid \
--enable-fstrim \
build:
- |
cd build
make install-strip -j $(nproc)
install:
- |
cd build
mkdir /rootfs
make install DESTDIR=/rootfs
rm -rf /rootfs/usr/local/{include,lib,share}
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /