summaryrefslogtreecommitdiff
path: root/pkg/bzip2/gen.lua
blob: d40e6316276a7c2dfecbef7a7c0d6302546f6186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
cflags{'-Wall'}

pkg.hdrs = copy('$outdir/include', '$srcdir', {'bzlib.h'})

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 'git'