2020-12-23 06:02:57 +00:00
|
|
|
#!/bin/sh
|
2021-02-08 06:23:31 +00:00
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
|
|
|
# SPDX-FileCopyrightText: 2020-2021 fosslinux <fosslinux@aussies.space>
|
2020-12-23 06:02:57 +00:00
|
|
|
#
|
2021-02-08 06:23:31 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-12-23 06:02:57 +00:00
|
|
|
|
2020-12-25 07:40:14 +00:00
|
|
|
set -ex
|
2020-12-23 06:02:57 +00:00
|
|
|
|
2020-12-25 07:40:14 +00:00
|
|
|
PATH=/after/bin:/bin
|
|
|
|
|
2021-01-20 01:43:40 +00:00
|
|
|
# Set commonly used variables
|
|
|
|
prefix=/after
|
|
|
|
bindir=${prefix}/bin
|
|
|
|
libdir=${prefix}/lib
|
|
|
|
incdir=${prefix}/include
|
|
|
|
MES_PREFIX=${prefix}/mes/src/mes
|
|
|
|
GUILE_LOAD_PATH=${prefix}/mes/src/nyacc/module:${prefix}/mes/src/mes/mes/module:${prefix}/mes/src/mes/module
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# cp and chown (mescc-tools-extra)
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="mescc-tools-extra"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2020-12-25 07:40:14 +00:00
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# Remove remaining dependencies on / (root of /after)
|
2021-01-20 01:43:40 +00:00
|
|
|
cp ../bin/hex2 bin/hex2
|
|
|
|
cp ../bin/M1 bin/M1
|
|
|
|
cp ../bin/M2-Planet bin/M2-Planet
|
|
|
|
cp ../bin/blood-elf bin/blood-elf
|
|
|
|
cp ../bin/get_machine bin/get_machine
|
|
|
|
cp ../bin/mes-m2 bin/mes-m2
|
|
|
|
cp ../bin/kaem bin/kaem
|
|
|
|
cp ../catm bin/catm
|
|
|
|
chmod 755 bin/hex2 bin/M1 bin/M2-Planet bin/blood-elf \
|
2020-12-25 07:40:14 +00:00
|
|
|
bin/get_machine bin/mes-m2 bin/kaem bin/catm
|
2021-02-13 06:29:49 +00:00
|
|
|
fletcher16 mescc-tools-seed-checksums
|
2021-01-20 01:43:40 +00:00
|
|
|
PATH=/after/bin
|
2020-12-25 07:40:14 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# mes
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="mes"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# tcc 0.9.26
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="tcc-0.9.26"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
2021-01-09 08:19:16 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# tcc 0.9.27
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="tcc-0.9.27"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
2021-01-10 21:22:30 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# tar
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="tar-1.12"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2021-01-11 20:43:42 +00:00
|
|
|
cd ..
|
2021-01-11 20:44:07 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# gzip
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="gzip-1.2.4"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2021-01-11 20:44:07 +00:00
|
|
|
cd ..
|
2021-01-11 20:52:52 +00:00
|
|
|
|
2021-03-15 18:33:23 +00:00
|
|
|
# sed
|
2021-03-17 17:27:19 +00:00
|
|
|
pkg="sed-4.0.9"
|
2021-03-15 18:33:23 +00:00
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# patch
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="patch-2.5.9"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2021-01-13 10:51:31 +00:00
|
|
|
cd ..
|
2021-01-14 10:45:36 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# sha-2
|
2021-02-15 08:33:12 +00:00
|
|
|
pkg="sha-2-61555d"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# Check all up to this part as sha256sum
|
2021-02-18 07:27:37 +00:00
|
|
|
sha256sum -c pre-sha.sha256sums
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# mes-libc-patched
|
2021-01-14 10:45:36 +00:00
|
|
|
cd tcc-0.9.27
|
2021-02-02 14:28:19 +00:00
|
|
|
kaem --file mes-libc-patched.kaem
|
2021-01-14 10:45:36 +00:00
|
|
|
cd ..
|
2021-01-14 10:47:08 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# tcc-patched
|
2021-01-29 16:43:10 +00:00
|
|
|
cd tcc-0.9.27
|
2021-02-02 14:28:19 +00:00
|
|
|
kaem --file tcc-patched.kaem
|
2021-01-29 16:43:10 +00:00
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# make
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="make-3.80"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2021-01-14 10:47:08 +00:00
|
|
|
cd ..
|
2021-01-13 22:29:23 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# bzip2
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="bzip2-1.0.8"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2021-01-13 22:29:23 +00:00
|
|
|
cd ..
|
2021-01-15 01:23:03 +00:00
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# coreutils
|
2021-01-20 19:23:48 +00:00
|
|
|
pkg="coreutils-5.0"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# heirloom-devtools
|
2021-01-26 21:30:45 +00:00
|
|
|
pkg="heirloom-devtools-070527"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
|
|
|
cd ..
|
|
|
|
|
2021-02-25 05:48:21 +00:00
|
|
|
# bash
|
2021-01-20 01:43:40 +00:00
|
|
|
pkg="bash-2.05b"
|
|
|
|
cd ${pkg}
|
|
|
|
kaem --file ${pkg}.kaem
|
2021-01-15 01:19:43 +00:00
|
|
|
cd ..
|
|
|
|
|
2021-01-29 01:31:56 +00:00
|
|
|
bash run.sh
|