-
Notifications
You must be signed in to change notification settings - Fork 1
/
org.pgadmin.pgadmin4.yml
162 lines (150 loc) · 6.06 KB
/
org.pgadmin.pgadmin4.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
app-id: org.pgadmin.pgadmin4
runtime: org.freedesktop.Platform
runtime-version: '24.08'
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
sdk: org.freedesktop.Sdk
command: run.sh
separate-locales: false
rename-desktop-file: pgadmin4.desktop
rename-icon: pgadmin4
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --socket=pulseaudio
- --device=dri
- --talk-name=org.freedesktop.secrets
modules:
- name: libpq
# Copying build instructions for the libpg client library from
# https://src.fedoraproject.org/rpms/libpq/blob/rawhide/f/libpq.spec
config-opts:
- --disable-rpath
#- --with-ldap # Disabling until somebody actually needs it
- --with-openssl
#- --with-gssapi # Disabling until somebody actually needs it
- --enable-nls
- --without-readline
sources:
- type: git
url: https://git.postgresql.org/git/postgresql.git
commit: 6304632eaa2107bb1763d29e213ff166ff6104c0
tag: REL_17_2
x-checker-data:
type: git
tag-pattern: ^REL_([\d_]+)$
- name: krb5
subdir: src
config-opts:
- --localstatedir=/var/lib
- --sbindir=${FLATPAK_DEST}/bin
- --disable-static
- --disable-rpath
sources:
- type: archive
url: https://kerberos.org/dist/krb5/1.21/krb5-1.21.3.tar.gz
sha256: b7a4cd5ead67fb08b980b21abd150ff7217e85ea320c9ed0c6dadd304840ad35
x-checker-data:
type: html
url: https://kerberos.org/dist/
version-pattern: Kerberos V5 Release ([\d\.-]*) - current release
url-template: https://kerberos.org/dist/krb5/$version0.$version1/krb5-$version.tar.gz
- name: python3-bcrypt
buildsystem: simple
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
bcrypt
sources:
- type: file
url: https://files.pythonhosted.org/packages/3e/d0/31938bb697600a04864246acde4918c4190a938f891fd11883eaaf41327a/bcrypt-4.2.0-cp39-abi3-manylinux_2_28_x86_64.whl
sha256: 3d3a6d28cb2305b43feac298774b997e372e56c7c7afd90a12b3dc49b189151c
x-checker-data:
type: pypi
name: bcrypt
packagetype: bdist_wheel
- name: python3-pycparser
buildsystem: simple
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
pycparser
sources:
- type: file
url: https://files.pythonhosted.org/packages/1d/b2/31537cf4b1ca988837256c910a668b553fceb8f069bedc4b1c826024b52c/pycparser-2.22.tar.gz
sha256: 491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6
x-checker-data:
type: pypi
name: pycparser
- name: python3-cffi
buildsystem: simple
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
cffi
sources:
- type: file
url: https://files.pythonhosted.org/packages/b2/d5/da47df7004cb17e4955df6a43d14b3b4ae77737dff8bf7f8f333196717bf/cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
sha256: b62ce867176a75d03a665bad002af8e6d54644fad99a3c70905c543130e39d93
x-checker-data:
type: pypi
name: cffi
packagetype: bdist_wheel
- name: python3-cryptography
buildsystem: simple
only-arches:
- x86_64
build-commands:
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST}
cryptography
sources:
- type: file
url: https://files.pythonhosted.org/packages/ac/25/e715fa0bc24ac2114ed69da33adf451a38abb6f3f24ec207908112e9ba53/cryptography-43.0.3-cp39-abi3-manylinux_2_28_x86_64.whl
sha256: c2e6fc39c4ab499049df3bdf567f768a723a5e8464816e8f009f121a5a9f4405
x-checker-data:
type: pypi
name: cryptography
packagetype: bdist_wheel
- python3-requirements_filtered.yaml
- name: pgadmin4-server
buildsystem: simple
build-commands:
- bsdtar -Oxf pgadmin-server.deb 'data.tar.zst' | bsdtar --exclude 'usr/pgadmin4/venv'
-xf -
- cp -r usr/* ${FLATPAK_DEST}/
- mv ${FLATPAK_DEST}/pgadmin4 ${FLATPAK_DEST}/pgAdmin4
- cat usr/pgadmin4/web/config_distro.py config_distro.py > ${FLATPAK_DEST}/pgAdmin4/web/config_distro.py
sources:
- type: file
url: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/main/binary-amd64/pgadmin4-server_8.13_amd64.deb
dest-filename: pgadmin-server.deb
sha256: cf907ca828c613bf230c2b7207b36959f15c7609c1365118f3db00fbd25f2208
x-checker-data:
type: anitya
project-id: 6603
url-template: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/main/binary-amd64/pgadmin4-server_${version}_amd64.deb
- type: file
path: config_distro.py
- name: pgadmin
buildsystem: simple
build-commands:
- bsdtar -Oxf pgadmin-desktop.deb 'data.tar.zst' | bsdtar -xf -
- cp -r usr/* ${FLATPAK_DEST}/
- mv ${FLATPAK_DEST}/pgadmin4/* ${FLATPAK_DEST}/pgAdmin4
- rm -rf ${FLATPAK_DEST}/pgadmin4
- desktop-file-edit --set-key="Exec" --set-value="run.sh" ${FLATPAK_DEST}/share/applications/pgadmin4.desktop
- install -Dm755 run.sh ${FLATPAK_DEST}/bin/run.sh
- install -Dm644 org.pgadmin.pgadmin4.metainfo.xml ${FLATPAK_DEST}/share/metainfo/org.pgadmin.pgadmin4.metainfo.xml
sources:
- type: file
url: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/main/binary-amd64/pgadmin4-desktop_8.13_amd64.deb
dest-filename: pgadmin-desktop.deb
sha256: d76b4a29e9519f24b54b9147847cc610999b3e5e0dd600600e310aa77f505ac8
x-checker-data:
type: anitya
project-id: 6603
url-template: https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/dists/pgadmin4/main/binary-amd64/pgadmin4-desktop_${version}_amd64.deb
- type: script
commands:
- zypak-wrapper /app/pgAdmin4/bin/pgadmin4
dest-filename: run.sh
- type: file
path: org.pgadmin.pgadmin4.metainfo.xml