From ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 17 Sep 2017 00:03:34 -0700 Subject: Rewrite ninja generation scripts in Lua --- pkg/bzip2/gen.lua | 18 ++++++++++++++++++ pkg/bzip2/gen.rc | 10 ---------- 2 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 pkg/bzip2/gen.lua delete mode 100644 pkg/bzip2/gen.rc (limited to 'pkg/bzip2') diff --git a/pkg/bzip2/gen.lua b/pkg/bzip2/gen.lua new file mode 100644 index 00000000..533328b9 --- /dev/null +++ b/pkg/bzip2/gen.lua @@ -0,0 +1,18 @@ +cflags{'-Wall', '-Winline'} + +lib('libbz2.a', { + 'blocksort.c', + 'huffman.c', + 'crctable.c', + 'randtable.c', + 'compress.c', + 'decompress.c', + 'bzlib.c' +}) +exe('bzip2', {'bzip2.c', 'libbz2.a'}) + +file('bin/bzip2', '755', '$outdir/bzip2') +man{'bzip2.1'} +sym('bin/bzcat', 'bzip2') + +fetch 'curl' diff --git a/pkg/bzip2/gen.rc b/pkg/bzip2/gen.rc deleted file mode 100644 index 6be8e1f7..00000000 --- a/pkg/bzip2/gen.rc +++ /dev/null @@ -1,10 +0,0 @@ -cflags -Wall -Winline - -lib libbz2.a blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c bzlib.c -exe bzip2 bzip2.c libbz2.a - -file bin/bzip2 '$outdir'/bzip2 755 -man 1 bzip2.1 -sym bin/bzcat bzip2 - -fetch curl -- cgit v1.2.3