summaryrefslogtreecommitdiff
path: root/pkg/unzip/gen.lua
blob: 8127f4dccecddc5ac29dd19123523be6f8d3443a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
]], {'pkg/bzip2/fetch'})
file('bin/unzip', '755', '$outdir/unzip')
man{'man/unzip.1'}

fetch 'curl'