repo/extra/util-linux/build
2021-07-18 06:26:18 +03:00

29 lines
507 B
Bash
Executable File

#!/bin/sh -e
./configure \
--prefix=/usr \
--localstatedir=/var \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--enable-libuuid \
--enable-libblkid \
--enable-fsck \
--disable-makeinstall-chown \
--disable-rpath \
--without-udev \
--without-python \
--without-systemd
make
make install
# Fix broken --sbindir.
mv -f "$1/usr/sbin/"* "$1/usr/bin"
rmdir "$1/usr/sbin"
rm -rf \
"$1/usr/share/doc" \
"$1/usr/share/bash-completion"