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 <akira@narux.de>
This commit is contained in:
2023-09-18 07:03:35 +02:00
parent 239273ae16
commit 81f5b981a6
3 changed files with 2 additions and 2 deletions

1
debian/install vendored
View File

@@ -1,3 +1,2 @@
data/revpicommander /usr/bin
data/revpicommander.desktop /usr/share/applications
data/revpicommander.png /usr/share/icons/hicolor/128x128/apps

1
debian/links vendored Normal file
View File

@@ -0,0 +1 @@
/usr/share/revpicommander/revpicommander_entry_point /usr/bin/revpicommander

2
debian/rules vendored
View File

@@ -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