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

29 lines
392 B
Plaintext
Raw Normal View History

2021-01-20 01:43:40 +00:00
#!/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
2021-01-20 19:09:42 +00:00
cp bzip2 /after/bin/bunzip2
2021-01-20 01:43:40 +00:00
chmod 755 /after/bin/bzip2
2021-01-20 19:09:42 +00:00
chmod 755 /after/bin/bunzip2
2021-01-20 01:43:40 +00:00
# Test
bzip2 --help
cd ../..