commit 9e6a8b36d113fdcb5458a67556db18341525edd9 parent 123b0012526017fcce7b9662f2fdf5d583861825 Author: sin <sin@2f30.org> Date: Tue, 24 Sep 2013 12:15:13 +0100 Add gawk Diffstat:
M | pkgs/busybox | | | 1 | - |
A | pkgs/gawk | | | 29 | +++++++++++++++++++++++++++++ |
2 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/pkgs/busybox b/pkgs/busybox @@ -16,7 +16,6 @@ install() { ln -s busybox addgroup ln -s busybox adduser ln -s getty agetty - ln -s busybox awk ln -s busybox bzip2 ln -s busybox delgroup ln -s busybox deluser diff --git a/pkgs/gawk b/pkgs/gawk @@ -0,0 +1,29 @@ +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="musl-gcc -static" ./configure --prefix=$root --disable-nls \ + --libdir=$root/devel/x86_64-linux-musl/lib \ + --libexecdir=$root/deve/x86_64-linux-musl/libexec || return 1 + make -j$nprocs || return 1 + popd +} + +install() { + pushd src/gawk-4.1.0 + make install || return 1 + pushd $root/bin + ln -s gawk awk + popd + popd +}