-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorg.flatpak.flatpak-builder-tools.yaml
105 lines (105 loc) · 4.58 KB
/
org.flatpak.flatpak-builder-tools.yaml
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
# TODO: ruby sdk extension for the rubygems generator
# TODO: add wrapper to have single entry point
app-id: org.flatpak.flatpak-builder-tools
runtime: org.freedesktop.Sdk
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: /bin/sh
finish-args:
- --env=PERL5LIB=/app/lib/perl5
- --filesystem=host
- --share=network
modules:
- name: flatpak-builder-tools
buildsystem: simple
build-commands:
- install -dm755 ${FLATPAK_DEST}/{bin,tools}
- |
set -e
cd node
python -m build --wheel
# TODO: switch to python-install when the new release with prefix support is out
pip3 install --verbose --exists-action=i --no-index --no-build-isolation --prefix=${FLATPAK_DEST} dist/*.whl
rm -r dist
- cp --recursive --preserve=mode * ${FLATPAK_DEST}/tools/
- find ${FLATPAK_DEST}/tools -type f -perm 0755 | xargs ln -s -t ${FLATPAK_DEST}/bin/
sources:
- type: git
url: https://github.com/flatpak/flatpak-builder-tools.git
#branch: master
commit: ba58a5c44ccb7d2e0ca0238d833d17de17c2b53b
x-checker-data:
is-main-source: true
type: json
url: https://api.github.com/repos/flatpak/flatpak-builder-tools/commits?sha=master&per_page=1
commit-query: .[].sha
version-query: .[].sha[0:8]
timestamp-query: .[].commit.committer.date
modules:
- python-packaging-tools/python-packaging-tools.json
- python-aiohttp/python-aiohttp.json
- name: python-poetry-core
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} poetry-core --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/d2/04/08841501db81bceb7a86a98dea7c12b0185fcc69bfdf1aea266f727d1d7e/poetry_core-1.0.8-py2.py3-none-any.whl
sha256: 54b0fab6f7b313886e547a52f8bf52b8cf43e65b2633c65117f8755289061924
x-checker-data:
type: pypi
name: poetry-core
packagetype: bdist_wheel
cleanup:
- '*'
- name: python-requirements-parser
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} requirements-parser --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/f9/77/16e5ed45d555284f8f639e4a7fa2385b72b1d3ded69b813e821cb94e151c/types_setuptools-63.4.1-py3-none-any.whl
sha256: 8781e2fe71fd2885b085f2eeaad099468cda791b383ccbc735d9aad0c44f5355
x-checker-data:
type: pypi
name: types-setuptools
packagetype: bdist_wheel
- type: file
url: https://files.pythonhosted.org/packages/f8/89/612e3b326d87780dc1daf39af7696634f969838213cddae4f553f75d04ae/requirements_parser-0.5.0-py3-none-any.whl
sha256: e7fcdcd04f2049e73a9fb150d8a0f9d51ce4108f5f7cbeac74c484e17b12bcd9
x-checker-data:
type: pypi
name: requirements-parser
packagetype: bdist_wheel
- name: python-toml
buildsystem: simple
build-commands:
- pip3 install --verbose --exists-action=i --no-index --find-links=file://${PWD}
--prefix=${FLATPAK_DEST} toml --no-build-isolation
sources:
- type: file
url: https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz
sha256: b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f
x-checker-data:
type: pypi
name: toml
- name: perl-dependencies
buildsystem: simple
build-options:
env:
- PERL5LIB=/app/lib/perl5
build-commands:
- perl-libs/install.sh
post-install:
# workaround for cpanm acting silly and installs files without write permission
- find ${FLATPAK_DEST} -type f ! -perm -0200 -exec chmod u+w '{}' \;
sources:
- perl-dependencies-sources.json
- type: shell
commands:
# fix the generated install.sh to avoid having it try to install into /usr
- sed -e 's|\(perl Makefile.PL\).* \&\& \(make install\).*|\1 INSTALL_BASE='${FLATPAK_DEST}'
\&\& \2|' -e 's|\(perl Build.PL\) \&\&|\1 --install_base='${FLATPAK_DEST}' \&\&|'
-i perl-libs/install.sh