mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-20 02:02:58 +01:00
Restructure
This commit is contained in:
parent
e5cbaa9e04
commit
5a369dc783
77 changed files with 419 additions and 295 deletions
0
sysa/gzip-1.2.4/build/.placeholder
Normal file
0
sysa/gzip-1.2.4/build/.placeholder
Normal file
41
sysa/gzip-1.2.4/gzip-1.2.4.kaem
Executable file
41
sysa/gzip-1.2.4/gzip-1.2.4.kaem
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
cd build
|
||||
|
||||
# Extract
|
||||
tar xf ../src/${pkg}.tar
|
||||
cd ${pkg}
|
||||
|
||||
# Patch
|
||||
# Remove strlwr, it does not build with mes libc
|
||||
cp util.c util_patched.c
|
||||
sed -i 165,174d util_patched.c
|
||||
|
||||
# Compile
|
||||
tcc -c -DNO_UTIME gzip.c
|
||||
tcc -c bits.c
|
||||
tcc -c crypt.c
|
||||
tcc -c deflate.c
|
||||
tcc -c getopt.c
|
||||
tcc -c inflate.c
|
||||
tcc -c lzw.c
|
||||
tcc -c trees.c
|
||||
tcc -c unlzh.c
|
||||
tcc -c unlzw.c
|
||||
tcc -c unpack.c
|
||||
tcc -c unzip.c
|
||||
tcc -c util_patched.c
|
||||
tcc -c zip.c
|
||||
|
||||
# Link
|
||||
tcc -static -o ${bindir}/gzip gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util_patched.o crypt.o lzw.o unlzw.o unpack.o unlzh.o getopt.o
|
||||
|
||||
# Install
|
||||
cp ${bindir}/gzip ${bindir}/gunzip
|
||||
cp ${bindir}/gzip ${bindir}/zcat
|
||||
chmod 755 ${bindir}/gunzip
|
||||
chmod 755 ${bindir}/zcat
|
||||
|
||||
cd ../..
|
||||
0
sysa/gzip-1.2.4/src/.placeholder
Normal file
0
sysa/gzip-1.2.4/src/.placeholder
Normal file
Loading…
Add table
Add a link
Reference in a new issue