summarylogtreecommitdiffstats
path: root/install-to-opt.patch
diff options
context:
space:
mode:
authorPetr Špaček2023-08-25 21:56:04 +0200
committerPetr Špaček2023-08-25 22:23:31 +0200
commitc92703a2f03da6717ed3965bb4da05ee264ba488 (patch)
tree2db50817313d4f9dc89ad2bbc9740346209e8f65 /install-to-opt.patch
downloadaur-c92703a2f03da6717ed3965bb4da05ee264ba488.tar.gz
Upstream AppImage content moved to /opt/ubpm
Upstream is not interested in proper Linux packaging, see https://codeberg.org/LazyT/ubpm/issues/45 As workaround, redirect whole AppImage file structure into /opt/ubpm, and disable SSL library & desktop integration build steps. For unknown reason I could not get .desktop files to install into /opt, so instead of proper .desktop files etc. just create link from /usr/bin/ubpm to /opt/ubpm/usr/bin/ubpm and be done with it.
Diffstat (limited to 'install-to-opt.patch')
-rw-r--r--install-to-opt.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/install-to-opt.patch b/install-to-opt.patch
new file mode 100644
index 000000000000..cf5180729412
--- /dev/null
+++ b/install-to-opt.patch
@@ -0,0 +1,24 @@
+diff --git a/sources/mainapp/mainapp.pro b/sources/mainapp/mainapp.pro
+index 823902f..8ffc5ad 100644
+--- a/sources/mainapp/mainapp.pro
++++ b/sources/mainapp/mainapp.pro
+@@ -33,9 +33,8 @@ unix:!macx {
+
+ QMAKE_LFLAGS += -Wl,-rpath=.
+
+- INSTALLDIR = /tmp/ubpm.AppDir
++ INSTALLDIR = /opt/ubpm
+
+- !system(command -v linuxdeployqt-continuous-x86_64.AppImage >/dev/null) { warning("linuxdeployqt (https://github.com/probonopd/linuxdeployqt/releases) missing, cant't build package!") }
+ !exists($$[QT_INSTALL_PLUGINS]/sqldrivers/libqsqlcipher.so) { warning("SQLCipher (https://github.com/sjemens/qsqlcipher-qt5) missing, encryption not available!") }
+ exists($$INSTALLDIR) { system(rm -r $$INSTALLDIR) }
+
+@@ -67,7 +66,7 @@ equals(QT_MAJOR_VERSION, 5) {
+ export VERSION=$$VERSION &&\
+ linuxdeployqt-continuous-x86_64.AppImage $$INSTALLDIR/ubpm.desktop -appimage -no-copy-copyright-files -no-translations &&\
+ mv Universal_Blood_Pressure_Manager-*-x86_64.AppImage ubpm-$$VERSION-qt$$QT_MAJOR_VERSION-x86_64.AppImage
+- INSTALLS += target translations themes devices help ssl lin
++ INSTALLS += target translations themes devices help
+ }
+
+ win32 {