Introduce packaging support

Utilising previously introduced DESTDIR support, everything is installed
to aformentioned DESTDIR.

Prior to the building of XBPS, we use gzip compressed tarballs as
packages. This requires a lot of strange hacks especially for old tar +
gzip (timestamps, etc causing reproducibility problems). Then we use
XBPS once built.
This commit is contained in:
fosslinux 2022-01-14 22:02:08 +11:00
parent f4d43e2113
commit 968d2ea7d1
4 changed files with 127 additions and 8 deletions

View file

@ -98,10 +98,12 @@ rm -rf "${SOURCES}/mes"
# Write to bootstrap.cfg
rm "${SOURCES}/bootstrap.cfg"
for var in CHROOT FORCE_TIMESTAMPS DISK; do
for var in CHROOT FORCE_TIMESTAMPS DISK ARCH; do
echo "export ${var}=${!var}" >> "${SOURCES}/bootstrap.cfg"
done
mkdir -p /tmp/destdir /usr/src/repo /dev
build flex-2.5.11
# Patch meslibc to support > 255 command line arguments