summaryrefslogtreecommitdiff
path: root/pkg/unzip/gen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/unzip/gen.lua')
-rw-r--r--pkg/unzip/gen.lua17
1 files changed, 17 insertions, 0 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'