live-bootstrap/sysc/tar-1.34/tar-1.34.sh
Andrius Štikonas 5b032cb46c rootfs.py refactoring.
Switch to bzip2 packages
Move most of the preprocessing done by rootfs.py
into kaem and bash scripts inside live-bootstrap.
2022-04-21 00:49:56 +01:00

35 lines
856 B
Bash
Executable file

# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 fosslinux <fosslinux@aussies.space>
#
# SPDX-License-Identifier: GPL-3.0-or-later
EXTRA_SRCS="gnulib-30820c.tar.gz"
src_prepare() {
default
. ../../import-gnulib.sh
# We don't have autopoint from gettext yet
AUTOPOINT=true autoreconf -fi
# Remove bison pregenerated file
rm gnu/parse-datetime.c
}
src_configure() {
FORCE_UNSAFE_CONFIGURE=1 ./configure \
--prefix="${PREFIX}" \
--disable-nls
}
src_compile() {
make PREFIX="${PREFIX}" MAKEINFO="true"
}
src_install() {
make install PREFIX="${PREFIX}" MAKEINFO="true" DESTDIR="${DESTDIR}"
# Manually install tar (cannot replace tar while running)
cp "${DESTDIR}${PREFIX}/bin/tar" "${PREFIX}/bin/tar"
rm "${DESTDIR}${PREFIX}/bin/tar"
}