Skip to content

Commit

Permalink
Add compatibility for Linux Mint 18.3 and Ubuntu 16.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximaximal committed Jul 23, 2018
1 parent 4cfece6 commit f01acbf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.0.4)
project(RTest
VERSION 0.6.0)
VERSION 0.6.1)

set(BUILD_NUMBER "0" CACHE STRING "Build-Number")

Expand Down Expand Up @@ -89,7 +89,7 @@ set(CPACK_RESSOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.md)
set(CPACK_RESSOURCE_FILE_README ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
set(CPACK_OUTPUT_FILE_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/packages)
set(CPACK_PACKAGE_CONTACT "Max Heisinger <mail@maximaximal.com>")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, python3-numpy, qml-module-qtquick-controls, qml-module-qtquick-controls2, qml-module-qtquick-layouts, qml-module-qtquick2, libqt5widgets5, libqt5gui5, libqt5quick5, libqt5qml5, libqt5quickwidgets5, swig, sqlite3")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python3, python3-numpy, qml-module-qtquick-controls, qml-module-qtquick-layouts, qml-module-qtquick2, libqt5widgets5, libqt5gui5, libqt5quick5, libqt5qml5, libqt5quickwidgets5, swig, sqlite3")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_CURRENT_SOURCE_DIR}/postinst;${CMAKE_CURRENT_SOURCE_DIR}/prerm")

Expand Down
7 changes: 6 additions & 1 deletion postinst
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ function install_python_lib {
ln -s /usr/lib/libpython3.so /usr/share/RTest/libpython3.4m.so.1.0
return
fi

# Linux Mint 19
if [ -f /usr/lib/x86_64-linux-gnu/libpython3.6m.so ]; then
ln -s /usr/lib/x86_64-linux-gnu/libpython3.6m.so /usr/share/RTest/libpython3.4m.so.1.0
return
fi
# Ubuntu 16.04 And Linux Mint 18.3
if [ -f /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1 ]; then
ln -s /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1 /usr/share/RTest/libpython3.4m.so.1.0
return
fi
echo "WARNING: Did not find libpythonXX.so to link!";
}

Expand Down

0 comments on commit f01acbf

Please sign in to comment.