/
io.github.Hexchat.Plugin.Perl.json
91 lines (91 loc) · 2.49 KB
/
io.github.Hexchat.Plugin.Perl.json
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
{
"id": "io.github.Hexchat.Plugin.Perl",
"branch": "23.08",
"runtime": "io.github.Hexchat",
"runtime-version": "stable",
"sdk": "org.freedesktop.Sdk//23.08",
"build-extension": true,
"separate-locales": false,
"appstream-compose": false,
"build-options": {
"prefix": "/app/extensions/Perl",
"prepend-path": "/app/extensions/Perl/bin"
},
"modules": [
{
"name": "perl",
"no-autogen": true,
"config-opts": [
"-des",
"-Duseshrplib"
],
"build-options": {
"cflags": "-fPIC",
"ldflags": "-fpic"
},
"cleanup": [
"/bin",
"/man",
"/lib/perl5/site_perl",
"*.pod",
"*.h"
],
"sources": [
{
"type": "archive",
"url": "https://www.cpan.org/src/5.0/perl-5.38.2.tar.gz",
"sha256": "a0a31534451eb7b83c7d6594a497543a54d488bc90ca00f5e34762577f40655e",
"x-data-checker": {
"type": "anitya",
"project-id": 13599,
"url-template": "https://www.cpan.org/src/5.0/perl-$version.tar.gz"
}
},
{
"type": "script",
"dest-filename": "configure",
"commands": [
"exec ./configure.gnu $@"
]
}
]
},
{
"name": "hexchat",
"buildsystem": "meson",
"config-opts": [
"--buildtype=release",
"-Dwith-lua=false",
"-Dwith-gtk=false",
"-Dwith-dbus=false"
],
"make-args": [
"plugins/perl/perl.so"
],
"no-make-install": true,
"post-install": [
"install -Dm644 plugins/perl/perl.so ${FLATPAK_DEST}/lib/hexchat/plugins/perl.so",
"install -Dm644 --target-directory=${FLATPAK_DEST}/share/metainfo data/misc/io.github.Hexchat.Plugin.Perl.metainfo.xml",
"appstream-compose --basename=io.github.Hexchat.Plugin.Perl --prefix=${FLATPAK_DEST} --origin=flatpak io.github.Hexchat.Plugin.Perl"
],
"sources": [
{
"type": "archive",
"url": "https://dl.hexchat.net/hexchat/hexchat-2.14.3.tar.xz",
"sha256": "901a9d13db5a4da69b827f6093306bbd16863dc49016f7668bd3e4506512e882"
},
{
"type":"patch",
"path":"0001-appdata-update-appstream.patch"
},
{
"type": "shell",
"commands": [
/* Hack to fix upstream someday */
"sed -i 's|with-theme-manager|with-appdata|' data/meson.build"
]
}
]
}
]
}