aboutsummaryrefslogtreecommitdiff
path: root/core/gzip/build
blob: c9a8235712b4a85b4ae4136d9db354d7bea7ed53 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -e

[ "$CPT_CROSS_TRIPLET" ] &&
    CC="$CPT_CROSS_TRIPLET-cc -L$CPT_ROOT/usr/lib -isystem $CPT_ROOT/usr/include"
make CC="${CC:-cc} -static"

install -Dm755 pigz   "$1/usr/bin/pigz"
install -Dm644 pigz.1 "$1/usr/share/man/man1/pigz.1"

ln -sf pigz   "$1/usr/bin/gzip"
ln -sf pigz.1 "$1/usr/share/man/man1/gzip.1"