commit b5e5a63d2ef084c41af07cecca1eb825aefc2f07 parent e2efb538dec611048fc633f4f7e5a3073e145261 Author: sin <sin@2f30.org> Date: Tue, 24 Sep 2013 17:17:46 +0100 Add GNU sed Diffstat:
M | pkgs/busybox | | | 1 | - |
A | pkgs/sed | | | 24 | ++++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/pkgs/busybox b/pkgs/busybox @@ -41,7 +41,6 @@ install() { ln -s busybox pkill ln -s busybox poweroff ln -s busybox reboot - ln -s busybox sed ln -s busybox sysctl ln -s busybox tac ln -s busybox telnet diff --git a/pkgs/sed b/pkgs/sed @@ -0,0 +1,24 @@ +url=$mirror/sed-4.2.tar.gz + +fetch() { + wget -c $url -O src/sed-4.2.tar.gz +} + +unpack() { + pushd src + [ -d sed-4.2 ] || tar xzf sed-4.2.tar.gz + popd +} + +build() { + pushd src/sed-4.2 + CC="musl-gcc -static" ./configure --prefix=$root --disable-nls || return 1 + make -j$nprocs || return 1 + popd +} + +install() { + pushd src/sed-4.2 + make install || return 1 + popd +}