mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-27 11:38:33 +00:00
29 lines
455 B
Plaintext
29 lines
455 B
Plaintext
url=$mirror/gawk-4.1.0.tar.gz
|
|
|
|
fetch() {
|
|
wget -c $url -O src/gawk-4.1.0.tar.gz
|
|
}
|
|
|
|
unpack() {
|
|
pushd src
|
|
[ -d gawk-4.1.0 ] || tar xzf gawk-4.1.0.tar.gz
|
|
popd
|
|
}
|
|
|
|
build() {
|
|
pushd src/gawk-4.1.0
|
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$root --disable-nls \
|
|
--libdir=$libcroot/lib || return 1
|
|
make -j$nprocs || return 1
|
|
popd
|
|
}
|
|
|
|
install() {
|
|
pushd src/gawk-4.1.0
|
|
make install || return 1
|
|
pushd $root/bin
|
|
ln -sf gawk awk
|
|
popd
|
|
popd
|
|
}
|