summaryrefslogtreecommitdiff
path: root/pkg/st/gen.lua
blob: 21416fc7e803a33906b90173da596ef2fd381d4d (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
cflags{
	[[-D 'VERSION="0.7"']],
	'-I $dir',
	'-isystem $builddir/pkg/fontconfig/include',
	'-isystem $builddir/pkg/libxkbcommon/include',
	'-isystem $builddir/pkg/linux-headers/include',
	'-isystem $builddir/pkg/pixman/include',
	'-isystem $builddir/pkg/wayland/include',
	'-isystem $builddir/pkg/wayland-protocols/include',
	'-isystem $builddir/pkg/wld/include',
}

pkg.deps = {
	'pkg/fontconfig/headers',
	'pkg/libxkbcommon/headers',
	'pkg/linux-headers/headers',
	'pkg/pixman/headers',
	'pkg/wayland/headers',
	'pkg/wayland-protocols/headers',
	'pkg/wld/headers',
}

exe('st', [[st.c $builddir/pkg/(
	libxkbcommon/libxkbcommon.a
	wayland/libwayland-client.a.d
	wayland/libwayland-cursor.a.d
	wayland-protocols/xdg-shell-protocol.c.o
	wld/libwld.a.d
)]])
file('bin/st', '755', '$outdir/st')
man{'st.1'}

fetch 'git'