Skip to content

Commit

Permalink
Merge pull request #208 from technosf/development
Browse files Browse the repository at this point in the history
Build normalization with flathub
  • Loading branch information
technosf authored Jan 9, 2025
2 parents bdf0bbe + 6ef1248 commit 229a541
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 178 deletions.
60 changes: 4 additions & 56 deletions com.github.louis77.tuner.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,18 @@
---
app-id: com.github.louis77.tuner

command: com.github.louis77.tuner

runtime: org.freedesktop.Platform
runtime-version: '24.08'

sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.vala

#base: io.elementary.BaseApp
#base-version: 'circe-24.08'

command: com.github.louis77.tuner

build-options:
prepend-path: /usr/lib/sdk/vala/bin/
prepend-ld-library-path: /usr/lib/sdk/vala/lib

add-extensions:
org.freedesktop.Sdk.Extension.vala:
version: '24.08'
directory: vala
autodelete: true

finish-args:
- "--share=ipc"
Expand All @@ -35,7 +26,7 @@ finish-args:
- "--talk-name=org.freedesktop.Notifications"
- "--own-name=org.mpris.MediaPlayer2.Tuner"
- "--env=PATH=/usr/bin:/app/bin:/app/vala/bin"
- "--env=LD_LIBRARY_PATH=/app/vala/lib:/app/lib:/lib"
- "--env=add-ld-path=/app/vala/lib:/app/lib:/lib"

cleanup:
- "/include"
Expand All @@ -54,32 +45,6 @@ modules:
buildsystem: simple
build-commands:
- install -d /app/vala

- name: vala-mod
buildsystem: meson
builddir: _build
modules:
- name: graphviz
buildsystem: autotools
config-opts:
- --prefix=/app
sources:
- type: archive
url: "https://gitlab.com/graphviz/graphviz/-/archive/10.0.1/graphviz-10.0.1.tar.gz"
sha256: "28f452ef1cb12288c8758a62f8c3fcfefdb91b251f7aae61d0d703f851bde931"
- name: valac
buildsystem: autotools
config-opts:
- --prefix=/app
cleanup:
- /share/info
- /share/man
- /share/doc
- /include
sources:
- type: archive
url: "https://download.gnome.org/sources/vala/0.56/vala-0.56.17.tar.xz"
sha256: "26100c4e4ef0049c619275f140d97cf565883d00c7543c82bcce5a426934ed6a"

- name: libsoup
buildsystem: meson
Expand All @@ -96,22 +61,10 @@ modules:
tag: 3.6.1
commit: 8b46a93bc1cbadb22dcdbb6844d9616723376535

# - name: taglib
# buildsystem: cmake-ninja
# config-opts:
# - "-DBUILD_SHARED_LIBS=ON"
# - "-DCMAKE_BUILD_TYPE=Release"
# sources:
# - type: git
# url: https://github.com/taglib/taglib.git
# tag: v2.0.2
# commit: e3de03501ff66221d1f1f971022b248d5b38ba06

- name: gee
buildsystem: autotools
build-options:
cflags: -Wno-error=incompatible-pointer-types
cleanup: ["*"]
sources:
- type: archive
url: https://download.gnome.org/sources/libgee/0.20/libgee-0.20.6.tar.xz
Expand All @@ -128,13 +81,8 @@ modules:

- name: tuner
buildsystem: meson
build-options:
cflags: "-g"
cxxflags: "-g"
buildtype: "debug"
config-opts:
- "--buildtype=debug"

- "--buildtype=release"
post-install:
- install -Dm644 /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/128x128/apps/
sources:
Expand Down
106 changes: 74 additions & 32 deletions com.github.louis77.tuner.yml.debug
Original file line number Diff line number Diff line change
@@ -1,50 +1,92 @@
---
app-id: com.github.louis77.tuner
runtime: io.elementary.Platform
runtime-version: '8'
sdk: io.elementary.Sdk

command: com.github.louis77.tuner

runtime: org.freedesktop.Platform
runtime-version: '24.08'

sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.vala

build-options:
prepend-path: /usr/lib/sdk/vala/bin/
prepend-ld-library-path: /usr/lib/sdk/vala/lib

finish-args:
- "--share=ipc"
- "--socket=fallback-x11"
- "--socket=system-bus"
- "--socket=wayland"
- "--talk-name=org.gtk.vfs.*"
- "--share=network"
- "--metadata=X-DConf=migrate-path=/com/github/louis77/tuner/"
- "--socket=pulseaudio"
- "--talk-name=org.freedesktop.Notifications"
- "--own-name=org.mpris.MediaPlayer2.Tuner"
- "--share=ipc"
- "--socket=fallback-x11"
- "--socket=wayland"
- "--talk-name=org.gtk.vfs.*"
- "--filesystem=xdg-run/gvfsd"
- "--filesystem=xdg-desktop"
- "--share=network"
- "--socket=pulseaudio"
- "--talk-name=org.freedesktop.Notifications"
- "--own-name=org.mpris.MediaPlayer2.Tuner"
- "--env=PATH=/usr/bin:/app/bin:/app/vala/bin"
- "--env=add-ld-path=/app/vala/lib:/app/lib:/lib"

cleanup:
- "/include"
- "/lib/pkgconfig"
- "/share/pkgconfig"
- "/share/aclocal"
- "/man"
- "/share/man"
- "/share/gtk-doc"
- "/share/vala"
- "*.la"
- "*.a"
- "/include"
- "/lib/pkgconfig"
- "/share/pkgconfig"
- "/share/aclocal"
- "/man"
- "/share/man"
- "/share/gtk-doc"
- "/share/vala"
- "*.la"
- "*.a"

modules:
- name: taglib
buildsystem: cmake-ninja
- name: vala
buildsystem: simple
build-commands:
- install -d /app/vala

- name: libsoup
buildsystem: meson
builddir: true
config-opts:
- "--buildtype=release"
- "-Dvapi=enabled"
- "-Dtests=false"
- "-Dgssapi=disabled"
- "-Dsysprof=disabled"
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libsoup.git
tag: 3.6.1
commit: 8b46a93bc1cbadb22dcdbb6844d9616723376535

- name: gee
buildsystem: autotools
build-options:
cflags: -Wno-error=incompatible-pointer-types
sources:
- type: archive
url: https://download.gnome.org/sources/libgee/0.20/libgee-0.20.6.tar.xz
sha256: 1bf834f5e10d60cc6124d74ed3c1dd38da646787fbf7872220b8b4068e476d4d

- name: granite
buildsystem: meson
config-opts:
- "-DBUILD_SHARED_LIBS=ON"
- "-DCMAKE_BUILD_TYPE=Release"
- "--buildtype=release"
sources:
- type: archive
# taglib updated in v1.5.3
url: https://github.com/taglib/taglib/releases/download/v1.13.1/taglib-1.13.1.tar.gz
sha256: c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b
- type: archive
url: https://github.com/elementary/granite/archive/refs/tags/6.2.0.tar.gz
sha256: 067d31445da9808a802fca523630c3e4b84d2d7c78ae547ced017cb7f3b9c6b5

- name: tuner
buildsystem: meson
build-options:
cflags: "-g"
cxxflags: "-g"
buildtype: "debug"
config-opts:
- "--buildtype=debug"
- "--buildtype=debug"
post-install:
- install -Dm644 /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/128x128/apps/
sources:
Expand Down
108 changes: 74 additions & 34 deletions com.github.louis77.tuner.yml.release
Original file line number Diff line number Diff line change
@@ -1,48 +1,88 @@
---
app-id: com.github.louis77.tuner
runtime: io.elementary.Platform
runtime-version: '8'
sdk: io.elementary.Sdk

command: com.github.louis77.tuner

runtime: org.freedesktop.Platform
runtime-version: '24.08'

sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.vala

build-options:
prepend-path: /usr/lib/sdk/vala/bin/
prepend-ld-library-path: /usr/lib/sdk/vala/lib

finish-args:
- "--share=ipc"
- "--socket=fallback-x11"
- "--socket=system-bus"
- "--socket=wayland"
- "--talk-name=org.gtk.vfs.*"
- "--filesystem=xdg-run/gvfsd"
- "--filesystem=xdg-desktop"
- "--share=network"
- "--metadata=X-DConf=migrate-path=/com/github/louis77/tuner/"
- "--socket=pulseaudio"
- "--talk-name=org.freedesktop.Notifications"
- "--own-name=org.mpris.MediaPlayer2.Tuner"
- "--share=ipc"
- "--socket=fallback-x11"
- "--socket=wayland"
- "--talk-name=org.gtk.vfs.*"
- "--filesystem=xdg-run/gvfsd"
- "--filesystem=xdg-desktop"
- "--share=network"
- "--socket=pulseaudio"
- "--talk-name=org.freedesktop.Notifications"
- "--own-name=org.mpris.MediaPlayer2.Tuner"
- "--env=PATH=/usr/bin:/app/bin:/app/vala/bin"
- "--env=add-ld-path=/app/vala/lib:/app/lib:/lib"

cleanup:
- "/include"
- "/lib/pkgconfig"
- "/share/pkgconfig"
- "/share/aclocal"
- "/man"
- "/share/man"
- "/share/gtk-doc"
- "/share/vala"
- "*.la"
- "*.a"
- "/include"
- "/lib/pkgconfig"
- "/share/pkgconfig"
- "/share/aclocal"
- "/man"
- "/share/man"
- "/share/gtk-doc"
- "/share/vala"
- "*.la"
- "*.a"

modules:
- name: taglib
buildsystem: cmake-ninja
- name: vala
buildsystem: simple
build-commands:
- install -d /app/vala

- name: libsoup
buildsystem: meson
builddir: true
config-opts:
- "--buildtype=release"
- "-Dvapi=enabled"
- "-Dtests=false"
- "-Dgssapi=disabled"
- "-Dsysprof=disabled"
sources:
- type: git
url: https://gitlab.gnome.org/GNOME/libsoup.git
tag: 3.6.1
commit: 8b46a93bc1cbadb22dcdbb6844d9616723376535

- name: gee
buildsystem: autotools
build-options:
cflags: -Wno-error=incompatible-pointer-types
sources:
- type: archive
url: https://download.gnome.org/sources/libgee/0.20/libgee-0.20.6.tar.xz
sha256: 1bf834f5e10d60cc6124d74ed3c1dd38da646787fbf7872220b8b4068e476d4d

- name: granite
buildsystem: meson
config-opts:
- "-DBUILD_SHARED_LIBS=ON"
- "-DCMAKE_BUILD_TYPE=Release"
- "--buildtype=release"
sources:
- type: archive
# taglib updated in v1.5.3
url: https://github.com/taglib/taglib/releases/download/v1.13.1/taglib-1.13.1.tar.gz
sha256: c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b
- type: archive
url: https://github.com/elementary/granite/archive/refs/tags/6.2.0.tar.gz
sha256: 067d31445da9808a802fca523630c3e4b84d2d7c78ae547ced017cb7f3b9c6b5

- name: tuner
buildsystem: meson
config-opts:
- "--buildtype=release"
- "--buildtype=release"
post-install:
- install -Dm644 /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.svg -t /app/share/icons/hicolor/128x128/apps/
sources:
Expand Down
Loading

0 comments on commit 229a541

Please sign in to comment.