org.opencpn.OpenCPN.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. # Copyright (c) 2018 Alec Leamas
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This manifest is used to build the official flathub package.
  9. app-id: org.opencpn.OpenCPN
  10. runtime: org.freedesktop.Platform
  11. runtime-version: "20.08"
  12. sdk: org.freedesktop.Sdk
  13. command: opencpn.sh
  14. rename-desktop-file: opencpn.desktop
  15. rename-icon: opencpn
  16. rename-appdata-file: opencpn.appdata.xml
  17. finish-args:
  18. - --socket=x11
  19. - --socket=pulseaudio
  20. - --filesystem=home
  21. - --share=network
  22. - --device=all
  23. add-extensions:
  24. org.opencpn.OpenCPN.Plugin:
  25. directory: extensions
  26. merge-dirs: lib/opencpn;share/opencpn/plugins;share/locale
  27. subdirectories: true
  28. no-autodownload: true
  29. autodelete: false
  30. modules:
  31. - shared-modules/glu/glu-9.json
  32. - name: python-dbus
  33. sources:
  34. - type: archive
  35. url: https://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.3.2.tar.gz
  36. sha256: ad67819308618b5069537be237f8e68ca1c7fcc95ee4a121fe6845b1418248f8
  37. - name: portaudio
  38. sources:
  39. - type: archive
  40. url: http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz
  41. sha256: f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513
  42. config-opts:
  43. - --disable-static
  44. - name: wxGTK3
  45. sources:
  46. - type: archive
  47. url: https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.4/wxWidgets-3.0.4.tar.bz2
  48. sha256: 96157f988d261b7368e5340afa1a0cad943768f35929c22841f62c25b17bf7f0
  49. config-opts:
  50. - --with-gtk=3
  51. - --with-opengl
  52. - --with-sdl
  53. - --with-gnomeprint
  54. - --with-libmspack
  55. - --enable-intl
  56. - --enable-no_deps
  57. - --disable-rpath
  58. - --enable-ipv6
  59. cleanup:
  60. - /include/
  61. - name: opencpn
  62. buildsystem: cmake
  63. builddir: true
  64. config-opts:
  65. - -DOCPN_BUNDLE_DOCS=ON
  66. - -DOCPN_BUNDLE_TCDATA=ON
  67. - -DOCPN_CI_BUILD=ON
  68. - -DOCPN_FLATPAK=ON
  69. - -DBUILD_SHARED_LIBS=OFF
  70. - -DCMAKE_CXX_COMPILER=/usr/bin/g++
  71. - -DCMAKE_C_COMPILER=/usr/bin/gcc
  72. - -DCMAKE_FIND_ROOT_PATH=/app
  73. - -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER
  74. - -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH
  75. - -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH
  76. build-options:
  77. cxxflags: -DFLATPAK
  78. cflags: -DFLATPAK
  79. env:
  80. BUILD_NUMBER: "0"
  81. post-install:
  82. - install -d /app/extensions
  83. - sed -i '/^Exec=/s/=.*/=opencpn.sh/' /app/share/applications/opencpn.desktop
  84. - install -Dm 755 ../data/opencpn.sh /app/bin/opencpn.sh
  85. sources:
  86. - type: git
  87. url: https://github.com/OpenCPN/OpenCPN.git
  88. tag: Release_5.2.4
  89. disable-fsckobjects: true
  90. - type: patch
  91. path: 0001-cmake-linux-Install-correct-appdata-file-2069.patch
  92. - type: patch
  93. path: 0002-flatpak-Add-a-shell-wrapper.patch
  94. - type: patch
  95. path: 0003-appdata-screenshot-url.patch
  96. - type: patch
  97. path: 0004-Add-warning-message-for-aarch64.patch
  98. - type: patch
  99. path: 0001-cmake-Upate-flatpak-runtime-version-18.08-20.08.patch