summaryrefslogtreecommitdiff
path: root/pkg/msmtp/gen.lua
blob: e622e0703248147e81f8635886018611dbc061fc (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
40
41
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
		eval.c
		list.c
		md5.c
		md5-apps.c
		msgid.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
	)
	$builddir/pkg/libtls-bearssl/libtls.a.d
]])

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

fetch 'git'