mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-12 06:15:29 +01:00
26 lines
335 B
Bash
Executable file
26 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 ../..
|