live-bootstrap/sysa/bzip2-1.0.8/bzip2-1.0.8.kaem
Andrius Štikonas e0335ce910 Install bunzip2.
2021-01-21 01:28:41 +00:00

28 lines
392 B
Bash
Executable file

#!/bin/sh
set -ex
cd build
# Extract
gunzip ../src/${pkg}.tar.gz
tar xf ../src/${pkg}.tar
cd ${pkg}
# Patch
patch -Np0 -i ../../patches/mes-libc.patch
patch -Np0 -i ../../patches/coreutils.patch
# Build
make CC=tcc AR="tcc -ar" bzip2
# Install
cp bzip2 /after/bin/bzip2
cp bzip2 /after/bin/bunzip2
chmod 755 /after/bin/bzip2
chmod 755 /after/bin/bunzip2
# Test
bzip2 --help
cd ../..