Exd/me.sergiotarxz.Exd.yml

102 lines
3.4 KiB
YAML
Raw Normal View History

2024-10-29 19:50:36 +01:00
id: "me.sergiotarxz.Exd"
runtime: "org.gnome.Platform"
runtime-version: "47"
sdk: "org.gnome.Sdk"
finish-args:
- --share=ipc
- --device=dri
- --socket=fallback-x11
- --socket=wayland
command: hiperthermia
modules:
- name: 'imagemagick'
sources:
- type: "git"
url: 'https://github.com/libgd/libgd'
commit: 'c2867fd56dd3198ca4d09572913166d60fb657f9'
- name: "perl"
no-autogen: true
config-opts:
- '-des'
# Build a shared library.
- '-Duseshrplib'
build-options:
cflags: '-fPIC'
ldflags: '-fpic'
sources:
- type: archive
url: https://www.cpan.org/src/5.0/perl-5.40.0.tar.gz
sha256: c740348f357396327a9795d3e8323bafd0fe8a5c7835fc1cbaba0cc8dfe7161f
- type: shell
commands:
# Have Flatpak run the GNU-compatible configure script.
- 'ln -s configure{.gnu,}'
# Restore write permission to the Perl libraries.
post-install:
- 'chmod -R u+w /app/lib/perl5'
# Clean up a bunch of stuff we don't need. Depending on your application,
# you may have to drop some of these (e.g. *.pod).
cleanup:
- '/bin/corelist'
- '/bin/cpan'
- '/bin/enc2xs'
- '/bin/encguess'
- '/bin/h2ph'
- '/bin/h2xs'
- '/bin/instmodsh'
- '/bin/json_pp'
- '/bin/libnetcfg'
- '/bin/perlbug'
- '/bin/perldoc'
- '/bin/perlivp'
- '/bin/perlthanks'
- '/bin/piconv'
- '/bin/pl2pm'
- '/bin/pod*'
- '/bin/prove'
- '/bin/ptar*'
- '/bin/shasum'
- '/bin/splain'
- '/bin/xsubpp'
- '/bin/zipdetails'
- '/include'
- '/man'
- '*.pod'
# Installs the modules generated by flatpak-cpan-generator.
# Note that *any* Makefile.PL-style modules MUST be installed in this one step,
# as once perllocal.pod is written in one module, it cannot be modified by others.
- name: perl-libs
buildsystem: simple
build-commands:
- 'perl-libs/install.sh'
# Same as with the Perl module, we need to restore write permission.
# However, -f is now passed to avoid errors from trying to touch files from the
# above module that are now marked as read-only.
post-install:
- 'chmod -Rf u+w /app/lib/perl5/site_perl'
sources:
- generated-sources.json
# This step should be customized based on the CPAN packages you're using.
cleanup:
- '/bin'
- '/man'
- name: "Hiperthermia"
buildsystem: simple
build-commands:
- 'cp -vr HiperthermiaSource ${FLATPAK_DEST}/Hiperthermia'
- 'glib-compile-resources --sourcedir=${FLATPAK_DEST}/Hiperthermia ${FLATPAK_DEST}/Hiperthermia/resources.xml'
2024-10-29 20:28:36 +01:00
- 'mkdir -p /app/share/mime/packages/'
2024-10-29 19:50:36 +01:00
- 'install -Dm644 HiperthermiaSource/me.sergiotarxz.Exd.desktop -t /app/share/applications/'
2024-10-29 20:26:00 +01:00
- 'install -m644 HiperthermiaSource/me.sergiotarxz.Exd.mime.xml -t /app/share/mime/packages'
2024-10-29 19:50:36 +01:00
- 'install -Dm755 HiperthermiaSource/run.sh /app/bin/hiperthermia'
2024-10-29 20:26:00 +01:00
- 'install -Dm644 HiperthermiaSource/exd-logo.png /app/share/icons/hicolor/256x256/apps/me.sergiotarxz.Exd.png'
# - 'install -Dm644 HiperthermiaSource/me.sergiotarxz.Exd.metainfo.xml -t /app/share/metainfo/'
2024-10-29 19:50:36 +01:00
sources:
- type: "git"
url: 'https://git.owlcode.tech/sergiotarxz/Exd'
commit: 'main'
# tag: "v0.26"
dest: 'HiperthermiaSource'