summaryrefslogtreecommitdiff
path: root/templates/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'templates/util-linux')
-rw-r--r--templates/util-linux/template49
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
+}