-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathme.sergiotarxz.JapaChar.yml
95 lines (94 loc) · 3.23 KB
/
me.sergiotarxz.JapaChar.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
id: "me.sergiotarxz.JapaChar"
runtime: "org.gnome.Platform"
runtime-version: "48"
sdk: "org.gnome.Sdk"
finish-args:
- --share=ipc
- --device=dri
- --socket=fallback-x11
- --socket=wayland
command: japachar
modules:
- 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.1.tar.gz
sha256: 02f8c45bb379ed0c3de7514fad48c714fd46be8f0b536bfd5320050165a1ee26
- 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: "japachar"
buildsystem: simple
build-commands:
- 'cd JapaCharSource; perl Build.PL'
- 'cd JapaCharSource; perl Build build'
- 'cp -vr JapaCharSource ${FLATPAK_DEST}/JapaChar'
- 'glib-compile-resources --sourcedir=${FLATPAK_DEST}/JapaChar ${FLATPAK_DEST}/JapaChar/resources.xml'
- 'install -Dm644 JapaCharSource/me.sergiotarxz.JapaChar.desktop -t /app/share/applications/'
- 'install -Dm755 JapaCharSource/run.sh /app/bin/japachar'
- 'install -Dm644 JapaCharSource/me.sergiotarxz.JapaChar-256.png /app/share/icons/hicolor/256x256/apps/me.sergiotarxz.JapaChar.png'
- 'install -Dm644 JapaCharSource/me.sergiotarxz.JapaChar.metainfo.xml -t /app/share/metainfo/'
sources:
- type: "git"
url: 'https://git.owlcode.tech/sergiotarxz/JapaChar'
commit: '96f20320d6d31ebe916bf27812ddbe7d3d3008fe'
tag: "v1.16"
dest: 'JapaCharSource'