mag

a binary package manager in one C file: apk and pacman repos, CRUX, Void and Exherbo ports
git clone https://github.com/tortr-rs/mag
Log | Files | Refs | README | LICENSE

nawk (617B)


      1 desc: the one true awk, small enough to build before anything else; bmake and every configure script need an awk
      2 version: 7.2
      3 url: https://github.com/apple-oss-distributions/awk/archive/refs/tags/awk-${version}.tar.gz
      4 sha256: 265cd9f0f69953b5cbce3c648f77de8faf3fcb9fa0bb7bc56b49824fe3ac0039
      5 deps:
      6 steps:
      7 	cd awk
      8 	sed -i "s/\*getline(/*awkgetline(/" proto.h run.c
      9 	sed -i "105s/.*/\t{ GETLINE, \"awkgetline\", \"getline\" },/" maketab.c
     10 	sed -i "/mv proctab.c proctab.c.orig/d" makefile
     11 	make YACC="yacc -d" HOSTCC=cc CC=cc CFLAGS=-O2
     12 	install -Dm755 a.out $DESTDIR$PREFIX/bin/awk
     13 	ln -sf awk $DESTDIR$PREFIX/bin/nawk