From 81f5b981a6ea1509f0c48ace7056e75e1324e366 Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Mon, 18 Sep 2023 07:03:35 +0200 Subject: [PATCH] packaging: Use patched entry point and link it to /usr/bin By renaming the entry point, which had the same name as the module, both can now be installed in the same directory. The entry point can then be created in /usr/bin as a link with the original name 'revpicommander'. Signed-off-by: Sven Sager --- debian/install | 1 - debian/links | 1 + debian/rules | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 debian/links diff --git a/debian/install b/debian/install index 6155340..f8d66c0 100644 --- a/debian/install +++ b/debian/install @@ -1,3 +1,2 @@ -data/revpicommander /usr/bin data/revpicommander.desktop /usr/share/applications data/revpicommander.png /usr/share/icons/hicolor/128x128/apps diff --git a/debian/links b/debian/links new file mode 100644 index 0000000..d8d4bcd --- /dev/null +++ b/debian/links @@ -0,0 +1 @@ +/usr/share/revpicommander/revpicommander_entry_point /usr/bin/revpicommander diff --git a/debian/rules b/debian/rules index c91a6ef..764d663 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ export PYBUILD_NAME=revpicommander # Install this module as an application an not into the python standard library path -export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/revpicommander/ --install-scripts=/usr/share/revpicommander/bin/ +export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/revpicommander/ --install-scripts=/usr/share/revpicommander/ %: dh $@ --with python3 --buildsystem=pybuild