opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (441B)


      1 cflags({
      2 	'-Wall', '-Wextra', '-Wno-clobbered', '-Wno-stringop-overflow',
      3 	'-D NOZOPFLI',
      4 	'-isystem $builddir/pkg/libs/zlib/include',
      5 })
      6 
      7 exe('pigz', [[
      8 	pigz.c yarn.c try.c
      9 	$builddir/pkg/libs/zlib/libz.a
     10 ]], {'pkg/libs/zlib/headers'})
     11 file('bin/pigz', '755', '$outdir/pigz')
     12 man({'pigz.1'})
     13 for _, alias in ipairs({'gzip', 'gunzip', 'zcat'}) do
     14 	sym('bin/'..alias, 'pigz')
     15 	sym('share/man/man1/'..alias..'.1', 'pigz.1')
     16 end
     17 
     18 fetch('git')