commit 7f6cd0d

hovercats  ·  2026-05-30 03:18:00 +0000 UTC
parent 4abad5f
havoc: add
6 files changed,  +77, -0
+5, -0
1@@ -462,3 +462,8 @@
2 	path = pkg/kiss-find/src
3 	url = https://github.com/aabacchus/kiss-find.git
4 	shallow = true
5+[submodule "pkg/havoc/src"]
6+	path = pkg/havoc/src
7+	url = https://github.com/ii8/havoc.git
8+	ignore = all
9+	shallow = true
+1, -0
1@@ -26,6 +26,7 @@ subgen 'freetype'
2 subgen 'fspec-sync'
3 subgen 'fuse'
4 subgen 'git'
5+subgen 'havoc'
6 subgen 'hotplugd'
7 subgen 'howl'
8 subgen 'hyx'
+40, -0
 1@@ -0,0 +1,40 @@
 2+cflags {
 3+	[[-D 'VERSION="0.7.0"']],
 4+	'-D _XOPEN_SOURCE=700',
 5+	'-isystem $builddir/pkg/libxkbcommon/include',
 6+	'-isystem $builddir/pkg/wayland/include',
 7+	'-isystem $builddir/pkg/wayland-protocols/include',
 8+}
 9+
10+pkg.deps = {
11+	'pkg/libxkbcommon/headers',
12+	'pkg/wayland/headers',
13+	'pkg/wayland-protocols/headers',
14+	'$builddir/pkg/wayland-protocols/xdg-shell-protocol.c.o',
15+	'$builddir/pkg/wayland-protocols/xdg-decoration-unstable-v1-protocol.c.o',
16+	'$builddir/pkg/wayland-protocols/primary-selection-unstable-v1-protocol.c.o',
17+}
18+
19+
20+exe('havoc', [[
21+	main.c glyph.c 
22+	tsm/(
23+		wcwidth.c shl-htable.c tsm-render.c
24+		tsm-screen.c tsm-selection.c tsm-unicode.c
25+		tsm-vte-charsets.c tsm-vte.c
26+	)
27+	$builddir/pkg/(
28+		wayland-protocols/xdg-shell-protocol.c.o
29+		wayland-protocols/xdg-decoration-unstable-v1-protocol.c.o
30+		wayland-protocols/primary-selection-unstable-v1-protocol.c.o
31+		libxkbcommon/libxkbcommon.a
32+		wayland/libwayland-client.a.d
33+		wayland/libwayland-cursor.a.d
34+	)
35+]])
36+
37+file('bin/havoc', '755', '$outdir/havoc')
38+
39+file('share/doc/havoc/havoc.cfg.sample', '644', '$srcdir/havoc.cfg')
40+
41+fetch 'git'
+29, -0
 1@@ -0,0 +1,29 @@
 2+From 2497dd12efd47417406843f4b1310d15aaccb762 Mon Sep 17 00:00:00 2001
 3+From: hovercats <hovercatswithlasereyes@protonmail.com>
 4+Date: Sat, 30 May 2026 04:44:04 +0200
 5+Subject: [PATCH] correct headernames so that it matches
 6+
 7+---
 8+ main.c | 6 +++---
 9+ 1 file changed, 3 insertions(+), 3 deletions(-)
10+
11+diff --git a/main.c b/main.c
12+index fecdd33..f9d4aa2 100644
13+--- a/main.c
14++++ b/main.c
15+@@ -21,9 +21,9 @@
16+ #include <wayland-cursor.h>
17+ 
18+ #include "tsm/libtsm.h"
19+-#include "xdg-shell.h"
20+-#include "primary-selection-unstable-v1.h"
21+-#include "xdg-decoration-unstable-v1.h"
22++#include "xdg-shell-client-protocol.h"
23++#include "primary-selection-unstable-v1-client-protocol.h"
24++#include "xdg-decoration-unstable-v1-client-protocol.h"
25+ 
26+ #define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
27+ 
28+-- 
29+2.54.0
30+
+1, -0
1@@ -0,0 +1 @@
2+Subproject commit fe9e4c92c074109cba80a0d15a09d7553d19573b
+1, -0
1@@ -0,0 +1 @@
2+0.7.0