repo/core/util-linux/build
2019-07-21 00:13:20 +07:00

29 lines
641 B
Bash
Executable File

#!/bin/sh -e
# During ./configure, disable kill and sulogin as they are provided
# by busybox.
./configure \
--prefix=/usr \
--localstatedir=/var \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--libdir=/usr/lib \
--disable-nls \
--enable-libuuid \
--enable-libblkid \
--enable-fsck \
--disable-makeinstall-chown \
--disable-rpath \
--disable-kill \
--disable-sulogin \
--without-udev \
--without-python \
--without-systemd
make
make DESTDIR="$1" install
# Remove getopt as it is provided by busybox. (For some reason
# ./configure does not support it)
rm -f "$1/usr/bin/getopt"