summaryrefslogtreecommitdiff
path: root/pkg/unzip
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-09-17 00:03:34 -0700
committerMichael Forney <mforney@mforney.org>2017-09-25 19:23:06 -0700
commitba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch)
tree48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/unzip
parentcb362b531d79708a259bbf070dee5104fd63df08 (diff)
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/unzip')
-rw-r--r--pkg/unzip/gen.lua17
-rw-r--r--pkg/unzip/gen.rc15
2 files changed, 17 insertions, 15 deletions
diff --git a/pkg/unzip/gen.lua b/pkg/unzip/gen.lua
new file mode 100644
index 00000000..93ddf30a
--- /dev/null
+++ b/pkg/unzip/gen.lua
@@ -0,0 +1,17 @@
+cflags{
+ '-include $dir/config.h',
+ '-I $srcdir',
+ '-I pkg/bzip2/src',
+}
+
+exe('unzip', [[
+ unzip.c crc32.c crypt.c envargs.c explode.c
+ extract.c fileio.c globals.c inflate.c list.c match.c
+ process.c ttyio.c ubz2err.c unreduce.c unshrink.c zipinfo.c
+ unix/unix.c
+ $builddir/pkg/bzip2/libbz2.a
+]], {'$builddir/pkg/bzip2/fetch.stamp'})
+file('bin/unzip', '755', '$outdir/unzip')
+man{'man/unzip.1'}
+
+fetch 'curl'
diff --git a/pkg/unzip/gen.rc b/pkg/unzip/gen.rc
deleted file mode 100644
index ed8b1d2d..00000000
--- a/pkg/unzip/gen.rc
+++ /dev/null
@@ -1,15 +0,0 @@
-cflags\
- -include '$dir'/config.h\
- -I '$srcdir' \
- -I pkg/bzip2/src
-
-exe unzip -d '$builddir'/pkg/bzip2/fetch.stamp\
- unzip.c crc32.c crypt.c envargs.c explode.c\
- extract.c fileio.c globals.c inflate.c list.c match.c\
- process.c ttyio.c ubz2err.c unreduce.c unshrink.c zipinfo.c\
- unix/unix.c\
- '$builddir'/pkg/bzip2/libbz2.a
-file bin/unzip '$outdir'/unzip 755
-man -d man 1 unzip.1
-
-fetch curl