diff options
| author | 0x221E <0x221E@0xinfinity.dev> | 2026-06-02 15:36:20 +0200 |
|---|---|---|
| committer | 0x221E <0x221E@0xinfinity.dev> | 2026-06-02 15:38:37 +0200 |
| commit | 51179eb02f2b2c4cf1c4ae31eee0a57dcbc78c03 (patch) | |
| tree | 7c86b41f63cad2038d298ec4d7188f16dd8f5fe3 /templates/util-linux | |
| download | bootstrap-master.tar.gz | |
Diffstat (limited to 'templates/util-linux')
| -rw-r--r-- | templates/util-linux/template | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/templates/util-linux/template b/templates/util-linux/template new file mode 100644 index 0000000..c248afa --- /dev/null +++ b/templates/util-linux/template @@ -0,0 +1,49 @@ +pkgname=util-linux +version=2.42.1 +upstream="https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${version}.tar.gz" + +function do_configure { +## These are flags from LFS, I have not reviewed this package yet. + ./autogen.sh + + conf_flags=( + --prefix=/usr + --exec-prefix=/usr + --bindir=/usr/bin + --sbindir=/usr/sbin + --libdir=/usr/lib + --includedir=/usr/include + --host=${DISTRO_TC} + --runstatedir=/run + --disable-chfn-chsh + --disable-login + --disable-nologin + --disable-su + --disable-setpriv + --disable-runuser + --disable-pylibmount + --disable-static + --disable-liblastlog2 + --without-python + --without-systemd + --without-ncurses + --disable-use-tty-group + --disable-makeinstall-chown + --disable-makeinstall-setuid + --disable-makeinstall-tty-setgid + ADJTIME_PATH=/var/lib/hwclock/adjtime + --docdir=/usr/share/doc/util-linux-${version} + --with-build-sysroot="${CROSS_TC}" + ) + + ./configure "${conf_flags[@]}" +} + +function do_build { + make -j$(nproc) +} + +function do_install { + mkdir -pv "${MASTERDIR}/var/lib/hwclock" + make DESTDIR="${MASTERDIR}" install +} |
