mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-11 13:55:24 +01:00
- Rather than defining the urls where they are gotten (python sysa, python sysc, inside sysc), a spec file is now used that is easily interpretable and tool-independent. - This is interpreted by rootfs.py and inside sysc. - This is also used to make sources available and extract sources. - Manual dirname selection is no longer required as is tarball renaming upon download - all of this is handled automatically. Fixes #188
45 lines
1.1 KiB
Bash
Executable file
45 lines
1.1 KiB
Bash
Executable file
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Get UTF txt files
|
|
cp ../*.txt .
|
|
|
|
# Rebuild libtool files
|
|
rm config/config.guess config/config.sub config/ltmain.sh
|
|
libtoolize -i
|
|
|
|
AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 AUTOCONF=autoconf-2.64 AUTOM4TE=autom4te-2.64 autoreconf-2.64 -fi
|
|
|
|
# Remove bison parser generated
|
|
rm intl/plural.y
|
|
|
|
# Setup for regeneratation of lib/ext2fs/utf8data.h
|
|
rm lib/ext2fs/utf8data.h
|
|
|
|
# Fix compile_et
|
|
sed -r -i "s/ > ?outfile//" lib/et/et_c.awk lib/et/et_h.awk lib/ss/ct_c.awk
|
|
|
|
# Disable int
|
|
sed -i "s/@LIBINTL@//" MCONFIG.in
|
|
}
|
|
|
|
src_configure() {
|
|
./configure --prefix="${PREFIX}" \
|
|
--sbindir="${PREFIX}/bin" \
|
|
with_udev_rules_dir=no \
|
|
with_systemd_unit_dir=no
|
|
}
|
|
|
|
src_compile() {
|
|
# Regen utf8data
|
|
make -C util mkutf8data
|
|
util/mkutf8data -o lib/ext2fs/utf8data.h
|
|
# Why does mkutf8data generate something not usable by build?
|
|
sed -i "s/nfkdi/nfdi/g" lib/ext2fs/utf8data.h
|
|
|
|
default
|
|
}
|