[neon/neon-packaging/kdotool/Neon/unstable] debian: use cargo build and an installs

Carlos De Maine null at kde.org
Sat Jan 27 02:26:14 GMT 2024


Git commit 3f9ae0c0a41eb04980299c993f268f8f050f8aae by Carlos De Maine.
Committed on 27/01/2024 at 02:26.
Pushed by carlosdem into branch 'Neon/unstable'.

use cargo build and an installs

M  +2    -1    debian/control
A  +1    -0    debian/kdotool.install
M  +10   -0    debian/rules

https://invent.kde.org/neon/neon-packaging/kdotool/-/commit/3f9ae0c0a41eb04980299c993f268f8f050f8aae

diff --git a/debian/control b/debian/control
index 488d0c6..4e9bdc9 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Section: utils
 Priority: optional
 Build-Depends: cargo, 
                cmake, 
-               debhelper-compat (= 13), 
+               debhelper-compat (= 13),
+               dh-cargo,
                rustc
 Standards-Version: 4.6.2
 Maintainer: Neon CI <neon at kde.org>
diff --git a/debian/kdotool.install b/debian/kdotool.install
new file mode 100644
index 0000000..50d83ca
--- /dev/null
+++ b/debian/kdotool.install
@@ -0,0 +1 @@
+../target/release/kdotool /usr/bin/
diff --git a/debian/rules b/debian/rules
index b8796e6..50f569e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,3 +3,13 @@
 
 %:
 	dh $@
+
+override_dh_auto_build:
+#	mkdir -p .cargo
+#	cp debian/cargo.config .cargo/config
+#	tar xJf debian/vendor.tar.xz
+	cargo build
+
+override_dh_auto_clean:
+	cargo clean
+#	rm -rf .cargo vendor


More information about the Neon-commits mailing list