summaryrefslogtreecommitdiff
path: root/pkg/hotplugd/gen.lua
blob: 14cd33cd942a2b9c953c67032ba415438fb6c931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
cflags{
	'-std=c11', '-Wall', '-Wextra', '-Wpedantic',
	([[-D 'PREFIX="%s"']]):format(config.prefix),
	'-isystem $builddir/pkg/linux-headers/include',
}

pkg.deps = {'pkg/linux-headers/headers'}

file('bin/hotplugd',             '755', exe('hotplugd',         {'hotplugd.c'}))
file('libexec/hotplugd-trigger', '755', exe('hotplugd-trigger', {'hotplugd-trigger.c'}))

fetch 'git'