live-bootstrap/sysa/util-linux-2.19.1/util-linux-2.19.1.sh

34 lines
960 B
Bash
Raw Normal View History

# SPDX-FileCopyrightText: 2021-23 fosslinux <fosslinux@aussies.space>
2021-06-22 11:11:23 +01:00
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
default
# We don't have gettext (autopoint) yet.
2022-07-07 20:43:39 +01:00
AUTOPOINT=true AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 AUTOM4TE=autom4te-2.64 autoreconf-2.64 -fi
2021-06-22 11:11:23 +01:00
}
src_configure() {
2022-05-09 19:55:26 +01:00
./configure --prefix="${PREFIX}" \
--bindir="${PREFIX}/bin" \
--sbindir="${PREFIX}/bin" \
--libdir="${LIBDIR}" \
--build=i386-unknown-linux-gnu \
--disable-cramfs \
2021-06-22 11:11:23 +01:00
--without-ncurses \
--enable-static \
--enable-static-programs=losetup,mount,umount,fdisk,sfdisk,blkid \
2021-06-22 11:11:23 +01:00
--enable-shared=no \
--disable-wall \
ac_cv_type_loff_t=yes
}
src_install() {
default
# A weird behaviour I can't find the source of
mv "${DESTDIR}${PREFIX}/i386-unknown-linux-musl/"* "${DESTDIR}${LIBDIR}/"
rmdir "${DESTDIR}${PREFIX}/i386-unknown-linux-musl/"
}