summaryrefslogtreecommitdiff
path: root/pkg/hotplugd/gen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/hotplugd/gen.lua')
-rw-r--r--pkg/hotplugd/gen.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/hotplugd/gen.lua b/pkg/hotplugd/gen.lua
new file mode 100644
index 00000000..14cd33cd
--- /dev/null
+++ b/pkg/hotplugd/gen.lua
@@ -0,0 +1,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'