summaryrefslogtreecommitdiff
path: root/pkg/msmtp/gen.lua
blob: 9cb8a72e3fbce6e60dea82930aa26c7230a2bc60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cflags{
	'-D HAVE_CONFIG_H',
	([[-D 'SYSCONFDIR="%s/etc"']]):format(config.prefix),
	'-I $dir',
	'-isystem $builddir/pkg/libtls-bearssl/include',
}

pkg.deps = {
	'pkg/libtls-bearssl/headers',
}

exe('msmtp', [[
	src/(
		conf.c
		list.c
		msmtp.c
		net.c
		netrc.c
		readbuf.c
		smtp.c
		stream.c
		tools.c
		xalloc.c
		aliases.c
		password.c
		base64.c

		mtls.c
		mtls-libtls.c

		md5.c md5-apps.c
	)
	$builddir/pkg/libtls-bearssl/libtls.a.d
]])

file('bin/msmtp', '755', '$outdir/msmtp')
man{'doc/msmtp.1'}

fetch 'git'