live-bootstrap/sysa/bzip2-1.0.8/bzip2-1.0.8.kaem

27 lines
335 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
chmod 755 /after/bin/bzip2
# Test
bzip2 --help
cd ../..