From 0a45e208e1b9f9741c2e1ce0b828cf40d5ab47db Mon Sep 17 00:00:00 2001 From: suliman Date: Sun, 19 Jun 2022 23:26:40 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=D8=AF=D8=B9=D9=85=20=D9=81=D9=84=D8=A7?= =?UTF-8?q?=D8=AA=D8=A8=D8=A7=D9=83=20=D9=85=D8=A8=D8=AF=D8=A6=D9=8A=D9=8B?= =?UTF-8?q?=D8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...github.alifcommunity.SpectrumIDEV2.desktop | 11 +++++ ...b.alifcommunity.SpectrumIDEV2.metainfo.xml | 19 +++++++++ ...om.github.alifcommunity.SpectrumIDEV2.yaml | 42 +++++++++++++++++++ flatpak/spectrum | 3 ++ 4 files changed, 75 insertions(+) create mode 100644 flatpak/com.github.alifcommunity.SpectrumIDEV2.desktop create mode 100644 flatpak/com.github.alifcommunity.SpectrumIDEV2.metainfo.xml create mode 100644 flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml create mode 100644 flatpak/spectrum diff --git a/flatpak/com.github.alifcommunity.SpectrumIDEV2.desktop b/flatpak/com.github.alifcommunity.SpectrumIDEV2.desktop new file mode 100644 index 0000000..90984be --- /dev/null +++ b/flatpak/com.github.alifcommunity.SpectrumIDEV2.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Type=Application + +Name=محرر طيف +Comment=محرر طيف خاص بلغة ألف 3 +Categories=Development;IDE; + +#Icon=com.github.alifcommunity.SpectrumIDEV2 +Exec=spectrum +Terminal=false \ No newline at end of file diff --git a/flatpak/com.github.alifcommunity.SpectrumIDEV2.metainfo.xml b/flatpak/com.github.alifcommunity.SpectrumIDEV2.metainfo.xml new file mode 100644 index 0000000..f50f47e --- /dev/null +++ b/flatpak/com.github.alifcommunity.SpectrumIDEV2.metainfo.xml @@ -0,0 +1,19 @@ + + + com.github.alifcommunity.SpectrumIDEV2 + + محرر طيف + محرر طيف خاص بلغة ألف 3 + + CC0-1.0 + GPL-3.0-or-later + + + +

+ محرر طيف الإصدار الثاني للغة ألف ثلاثة, مع أمثلة مضمنة +

+
+ + com.github.alifcommunity.SpectrumIDEV2.desktop +
\ No newline at end of file diff --git a/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml b/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml new file mode 100644 index 0000000..8f2704f --- /dev/null +++ b/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml @@ -0,0 +1,42 @@ +app-id: com.github.alifcommunity.SpectrumIDEV2 +runtime: org.kde.Platform +runtime-version: 6.2 +sdk: org.kde.Sdk +base: com.riverbankcomputing.PyQt.BaseApp +base-version: 6.2 +command: spectrum +finish-args: + - --socket=x11 + - --share=ipc + - --device=dri + - --socket=wayland + - --share=network + - --socket=pulseaudio +cleanup-commands: + - ${FLATPAK_DEST}/cleanup-BaseApp.sh +modules: + - name: SpectrumIDEV2 + buildsystem: simple + build-commands: + - cp -rv * ${FLATPAK_DEST} + #- sed -i '1 i\#!/usr/bin/env python3' ${FLATPAK_DEST}/Spectrum.py + sources: + - type: git + url: https://github.com/alifcommunity/SpectrumIDEV2.git + branch: main + + - name: Metainfo + buildsystem: simple + build-commands: + - install -D com.github.alifcommunity.SpectrumIDEV2.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.github.alifcommunity.SpectrumIDEV2.metainfo.xml + - install -D com.github.alifcommunity.SpectrumIDEV2.desktop ${FLATPAK_DEST}/share/applications/com.github.alifcommunity.SpectrumIDEV2.desktop + #- install -D com.github.alifcommunity.SpectrumIDEV2.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/ + - install -D spectrum ${FLATPAK_DEST}/bin/spectrum + sources: + - type: file + path: com.github.alifcommunity.SpectrumIDEV2.desktop + - type: file + path: com.github.alifcommunity.SpectrumIDEV2.metainfo.xml + - type: file + path: spectrum + \ No newline at end of file diff --git a/flatpak/spectrum b/flatpak/spectrum new file mode 100644 index 0000000..8de15f5 --- /dev/null +++ b/flatpak/spectrum @@ -0,0 +1,3 @@ +#!/usr/bin/env sh +cd /app +python3 Spectrum.py From 660e6745eb0969c575d4675951e4b287d2ccf557 Mon Sep 17 00:00:00 2001 From: suliman Date: Wed, 17 Aug 2022 02:59:10 +0300 Subject: [PATCH 2/2] Add Boost & Alif --- ...om.github.alifcommunity.SpectrumIDEV2.yaml | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml b/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml index 8f2704f..29d62f8 100644 --- a/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml +++ b/flatpak/com.github.alifcommunity.SpectrumIDEV2.yaml @@ -1,5 +1,5 @@ app-id: com.github.alifcommunity.SpectrumIDEV2 -runtime: org.kde.Platform +runtime: org.kde.Sdk runtime-version: 6.2 sdk: org.kde.Sdk base: com.riverbankcomputing.PyQt.BaseApp @@ -39,4 +39,25 @@ modules: path: com.github.alifcommunity.SpectrumIDEV2.metainfo.xml - type: file path: spectrum - \ No newline at end of file + + - name: boost + buildsystem: simple + build-commands: + - ./bootstrap.sh --prefix=${FLATPAK_DEST} --with-toolset=gcc --with-libraries=filesystem,system,program_options,date_time,locale,regex,nowide,thread + - ./b2 headers link=shared runtime-link=shared variant=release -j $FLATPAK_BUILDER_N_JOBS install + sources: + - type: archive + url: https://boostorg.jfrog.io/artifactory/main/release/1.79.0/source/boost_1_79_0.tar.bz2 + sha256: 475d589d51a7f8b3ba2ba4eda022b170e562ca3b760ee922c146b6c65856ef39 + + - name: alif + #TODO: Change buildsystem to cmake + #buildsystem: cmake + buildsystem: simple + build-commands: + - mkdir build && cd build && cmake .. . -DCMAKE_INSTALL_PREFIX=${FLATPAK_DEST} && make -j $FLATPAK_BUILDER_N_JOBS install + - cp -r /app/include/boost /app/lib/aliflib + sources: + - type: git + url: https://github.com/alifcommunity/compiler.git + commit: e13624a6a243997c5c1b262e38947f0e957b6ae2