opkg

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

gen.lua (478B)


      1 cflags{
      2 	'-D _GNU_SOURCE',
      3 	'-I $dir',
      4 	'-isystem $builddir/pkg/libs/pcre/include',
      5 	'-isystem $builddir/pkg/libs/zlib/include',
      6 }
      7 
      8 pkg.deps = {
      9 	'pkg/libs/pcre/headers',
     10 	'pkg/libs/zlib/headers',
     11 }
     12 
     13 exe('ag', [[
     14 	src/(
     15 	        ignore.c log.c options.c print.c print_w32.c scandir.c search.c lang.c
     16 	        util.c decompress.c main.c
     17 	)
     18 	$builddir/pkg/libs/pcre/libpcre.a
     19 	$builddir/pkg/libs/zlib/libz.a
     20 ]])
     21 file('bin/ag', '755', '$outdir/ag')
     22 man({'doc/ag.1'})
     23 
     24 fetch('git')