From a30159f101aa153c00327f647e425fa5c0d03ffd Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 23 Aug 2020 00:27:20 +0300 Subject: add editor repository --- editors/vis/build | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 editors/vis/build (limited to 'editors/vis/build') diff --git a/editors/vis/build b/editors/vis/build new file mode 100755 index 0000000..571b43f --- /dev/null +++ b/editors/vis/build @@ -0,0 +1,38 @@ +#!/bin/sh -e + +( + cd termkey + + make termkey.h libtermkey.la + + mkdir -p "../usr/lib" \ + "../usr/include" + + mv termkey.h "../usr/include" + mv .libs/*.a "../usr/lib" + +) + +( + # Lpeg doesn't have an option to create static libraries. + cd lpeg + for obj in lpcap lpcode lpprint lptree lpvm; do + "${CC:-cc}" $CFLAGS -c -o $obj.o $obj.c + done + ar rcs ../usr/lib/liblpeg.a ./*.o +) + +( + cd vis + + export CFLAGS="$CFLAGS -static -I../usr/include" + export LDFLAGS="$LDFLAGS -L../usr/lib" + + ./configure \ + --prefix=/usr \ + --enable-lua \ + --enable-liblpeg-static + + make + make DESTDIR="$1" install +) -- cgit v1.2.3