27 lines
335 B
Plaintext
27 lines
335 B
Plaintext
|
#!/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 ../..
|