2023-02-02 04:33:48 +00:00
|
|
|
# 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}" \
|
2021-07-26 06:25:15 +01:00
|
|
|
--bindir="${PREFIX}/bin" \
|
2022-01-14 10:57:47 +00:00
|
|
|
--sbindir="${PREFIX}/bin" \
|
2022-09-14 13:07:13 +01:00
|
|
|
--libdir="${LIBDIR}" \
|
2022-03-07 07:58:20 +00:00
|
|
|
--build=i386-unknown-linux-gnu \
|
2023-02-28 05:54:31 +00:00
|
|
|
--disable-cramfs \
|
2021-06-22 11:11:23 +01:00
|
|
|
--without-ncurses \
|
|
|
|
--enable-static \
|
2023-02-28 05:54:31 +00:00
|
|
|
--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
|
|
|
|
}
|
2023-02-02 04:33:48 +00:00
|
|
|
|
|
|
|
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/"
|
|
|
|
}
|