Subject: [PATCH] Add symlink in libexec for arduino-cli

From: Nicolas Peugnet <[email-masked]>
Date: Sun, 26 Jul 2026 12:10:07 +0200

diff --git a/debian/arduino-ctags.links b/debian/arduino-ctags.links
new file mode 100644
index 0000000..4615695
--- /dev/null
+++ b/debian/arduino-ctags.links
@@ -0,0 +1 @@
+usr/bin/arduino-ctags  usr/libexec/arduino/builtin/tools/ctags/${env:DEB_VERSION}
diff --git a/debian/rules b/debian/rules
index dc299b5..8a3ac30 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,10 @@
 # Uncomment if needed.
 #export DH_VERBOSE = 1
 
+include /usr/share/dpkg/pkg-info.mk
+# Export version env var for reuse in arduino-ctags.links
+export DEB_VERSION
+
 include /usr/share/dpkg/buildflags.mk
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1