|
| 1 | +--- |
| 2 | +app-id: pm.mirko.Atoms |
| 3 | +runtime: org.gnome.Platform |
| 4 | +runtime-version: '42' |
| 5 | +sdk: org.gnome.Sdk |
| 6 | +command: atoms |
| 7 | + |
| 8 | +finish-args: |
| 9 | +- "--share=network" |
| 10 | +- "--share=ipc" |
| 11 | +- "--socket=fallback-x11" |
| 12 | +- "--device=dri" |
| 13 | +- "--socket=wayland" |
| 14 | +- "--allow=devel" # this make proot works |
| 15 | +# - "--talk-name=org.freedesktop.Flatpak" # set this for distrobox support |
| 16 | + |
| 17 | +add-extensions: |
| 18 | + org.gnome.Platform.Compat.i386: |
| 19 | + directory: lib/i386-linux-gnu |
| 20 | + version: "42" |
| 21 | + |
| 22 | + org.gnome.Platform.Compat.i386.Debug: |
| 23 | + directory: lib/debug/lib/i386-linux-gnu |
| 24 | + version: "42" |
| 25 | + no-autodownload: true |
| 26 | + |
| 27 | + org.freedesktop.Platform.GL32: |
| 28 | + directory: lib/i386-linux-gnu/GL |
| 29 | + version: '1.4' |
| 30 | + versions: 21.08;1.4 |
| 31 | + subdirectories: true |
| 32 | + no-autodownload: true |
| 33 | + autodelete: false |
| 34 | + add-ld-path: lib |
| 35 | + merge-dirs: vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d |
| 36 | + download-if: active-gl-driver |
| 37 | + enable-if: active-gl-driver |
| 38 | + |
| 39 | +x-compat-i386-opts: &compat_i386_opts |
| 40 | + prepend-pkg-config-path: /app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig |
| 41 | + ldflags: -L/app/lib32 |
| 42 | + append-path: /usr/lib/sdk/toolchain-i386/bin |
| 43 | + env: |
| 44 | + CC: i686-unknown-linux-gnu-gcc |
| 45 | + CXX: i686-unknown-linux-gnu-g++ |
| 46 | + libdir: /app/lib32 |
| 47 | + |
| 48 | +sdk-extensions: |
| 49 | + - org.gnome.Sdk.Compat.i386 |
| 50 | + - org.freedesktop.Sdk.Extension.toolchain-i386 |
| 51 | + - org.freedesktop.Sdk.Extension.golang |
| 52 | + |
| 53 | +cleanup: |
| 54 | +- "/include" |
| 55 | +- "/lib/pkgconfig" |
| 56 | +- "/man" |
| 57 | +- "/share/doc" |
| 58 | +- "/share/gtk-doc" |
| 59 | +- "/share/man" |
| 60 | +- "/share/pkgconfig" |
| 61 | +- "*.la" |
| 62 | +- "*.a" |
| 63 | + |
| 64 | +modules: |
| 65 | +- name: talloc |
| 66 | + buildsystem: simple |
| 67 | + build-commands: |
| 68 | + - ./configure --prefix=/app |
| 69 | + - make |
| 70 | + - make install |
| 71 | + sources: |
| 72 | + - type: archive |
| 73 | + url: https://www.samba.org/ftp/talloc/talloc-2.3.4.tar.gz |
| 74 | + sha256: 179f9ebe265e67e4ab2c26cad2b7de4b6a77c6c212f966903382869f06be6505 |
| 75 | + |
| 76 | +- name: proot |
| 77 | + buildsystem: simple |
| 78 | + build-commands: |
| 79 | + - mv uthash/src/* src |
| 80 | + - make -C src proot |
| 81 | + - install -m755 -d /app/bin |
| 82 | + - install -m755 -d /app/lib |
| 83 | + - install -m755 src/proot /app/bin |
| 84 | + sources: |
| 85 | + - type: archive |
| 86 | + url: https://github.com/troydhanson/uthash/archive/refs/tags/v2.3.0.tar.gz |
| 87 | + sha256: e10382ab75518bad8319eb922ad04f907cb20cccb451a3aa980c9d005e661acc |
| 88 | + dest: uthash |
| 89 | + - type: git |
| 90 | + url: https://github.com/termux/proot |
| 91 | + commit: 5c462a6ecfddd629b1439f38fbb61216d6fcb359 |
| 92 | + |
| 93 | +- name: libadwaita |
| 94 | + buildsystem: meson |
| 95 | + config-opts: |
| 96 | + - -Dexamples=false |
| 97 | + - -Dtests=false |
| 98 | + sources: |
| 99 | + - type: git |
| 100 | + url: https://gitlab.gnome.org/GNOME/libadwaita.git |
| 101 | + tag: 1.2.alpha |
| 102 | + commit: 9150f4016a04064a00733b78391c8e6aad49bee8 |
| 103 | + modules: |
| 104 | + - name: libsass |
| 105 | + buildsystem: meson |
| 106 | + sources: |
| 107 | + - type: git |
| 108 | + url: https://github.com/lazka/libsass.git |
| 109 | + branch: meson |
| 110 | + - name: sassc |
| 111 | + buildsystem: meson |
| 112 | + sources: |
| 113 | + - type: git |
| 114 | + url: https://github.com/lazka/sassc.git |
| 115 | + branch: meson |
| 116 | + |
| 117 | + - name: vte |
| 118 | + buildsystem: meson |
| 119 | + config-opts: |
| 120 | + - -Ddocs=false |
| 121 | + - -Dvapi=false |
| 122 | + - -Dgtk4=true |
| 123 | + - -Dgtk3=false |
| 124 | + sources: |
| 125 | + - type: git |
| 126 | + url: https://gitlab.gnome.org/GNOME/vte.git |
| 127 | + commit: 3ed53bfaa7344ce5b7727a60a2d33315b15201e5 |
| 128 | + |
| 129 | +# - name: fakeroot |
| 130 | +# buildsystem: simple |
| 131 | +# build-commands: |
| 132 | +# - ./configure --prefix=/app |
| 133 | +# - make |
| 134 | +# - make install |
| 135 | +# sources: |
| 136 | +# - type: archive |
| 137 | +# url: https://deb.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.29.orig.tar.gz |
| 138 | +# sha256: 8fbbafb780c9173e3ace4a04afbc1d900f337f3216883939f5c7db3431be7c20 |
| 139 | + |
| 140 | +- name: servicectl |
| 141 | + buildsystem: simple |
| 142 | + build-commands: |
| 143 | + - install -m755 serviced /app/bin |
| 144 | + - install -m755 servicectl /app/bin |
| 145 | + sources: |
| 146 | + - type: git |
| 147 | + url: https://github.com/AtomsDevs/servicectl.git |
| 148 | + commit: fda22d97a65bb881d83f4ba10a78ce54867eeed4 |
| 149 | + |
| 150 | +- name: atoms-core |
| 151 | + buildsystem: simple |
| 152 | + build-commands: |
| 153 | + - python3 setup.py install --prefix=/app --root=/ |
| 154 | + sources: |
| 155 | + - type: git |
| 156 | + url: https://github.com/AtomsDevs/atoms-core.git |
| 157 | + commit: dfa06e5de65e0cdb78a51b143e9410d8f337d9e7 |
| 158 | + modules: |
| 159 | + - name: orjson |
| 160 | + buildsystem: simple |
| 161 | + build-commands: |
| 162 | + - pip3 install --prefix /app --no-deps orjson-*.whl |
| 163 | + sources: |
| 164 | + - type: file |
| 165 | + url: https://files.pythonhosted.org/packages/d6/79/174c198de7beb2f5ce06c41ecafb1aafc0714bb61a051ad9dfbc2fed76e8/orjson-3.7.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| 166 | + sha256: 7ef66e7c47e9531dfa3b3ffb791b548c84903570b0914b01acc5eeb56ff5bc33 |
| 167 | + - name: python-requests |
| 168 | + buildsystem: simple |
| 169 | + build-commands: |
| 170 | + - python3 setup.py install --prefix=/app --root=/ |
| 171 | + sources: |
| 172 | + - type: archive |
| 173 | + url: https://github.com/psf/requests/archive/refs/tags/v2.28.0.tar.gz |
| 174 | + sha256: 6b757ca284d8dc192794010c960b0cf405fcc7aed9ed2e04a8269dc41b1231ad |
| 175 | + - name: python-urllib3 |
| 176 | + buildsystem: simple |
| 177 | + build-commands: |
| 178 | + - python3 setup.py install --prefix=/app --root=/ |
| 179 | + sources: |
| 180 | + - type: archive |
| 181 | + url: https://github.com/urllib3/urllib3/archive/refs/tags/1.26.9.tar.gz |
| 182 | + sha256: 5860049db8811e7a26e5f228359522814dc8159e6ec4f352b1b596e0dee80503 |
| 183 | + - name: python-chardet |
| 184 | + buildsystem: simple |
| 185 | + build-commands: |
| 186 | + - python3 setup.py install --prefix=/app --root=/ |
| 187 | + sources: |
| 188 | + - type: archive |
| 189 | + url: https://github.com/chardet/chardet/archive/4.0.0.tar.gz |
| 190 | + sha256: 67bbe3eb02691d38831ddf2719c40fe09381bc17f15321946f6cd71dc274e530 |
| 191 | + - name: python-certifi |
| 192 | + buildsystem: simple |
| 193 | + build-commands: |
| 194 | + - python3 setup.py install --prefix=/app --root=/ |
| 195 | + sources: |
| 196 | + - type: archive |
| 197 | + url: https://github.com/certifi/python-certifi/archive/refs/tags/2021.10.08.tar.gz |
| 198 | + sha256: 51c2cf76f7f2582d9c4eb5440bb311ef523ba0b319d0a973450ecebfb6802a3a |
| 199 | + - name: python-idna |
| 200 | + buildsystem: simple |
| 201 | + build-commands: |
| 202 | + - python3 setup.py install --prefix=/app --root=/ |
| 203 | + sources: |
| 204 | + - type: archive |
| 205 | + url: https://github.com/kjd/idna/archive/refs/tags/v3.3.tar.gz |
| 206 | + sha256: 34b145ffe35b7872e9a3e0abc3a3a8330db90a0fd58db978725fd05c5c7d9f88 |
| 207 | + |
| 208 | +- name: atoms-cli |
| 209 | + buildsystem: simple |
| 210 | + build-commands: |
| 211 | + - python3 setup.py install --prefix=/app --root=/ |
| 212 | + sources: |
| 213 | + - type: git |
| 214 | + url: https://github.com/AtomsDevs/atoms-cli.git |
| 215 | + commit: f0cf3718b517074ff63e1e7b54bf5d09d4b6e826 |
| 216 | + modules: |
| 217 | + - name: python-tabulate |
| 218 | + buildsystem: simple |
| 219 | + build-commands: |
| 220 | + - python3 setup.py install --prefix=/app --root=/ |
| 221 | + sources: |
| 222 | + - type: archive |
| 223 | + url: https://github.com/astanin/python-tabulate/archive/refs/tags/v0.8.10.tar.gz |
| 224 | + sha256: 7a81a625d3cdfdd7c9db25f992410f46e7cbb20ed151126fceeac95586b90284 |
| 225 | + |
| 226 | +- name: atoms |
| 227 | + builddir: true |
| 228 | + buildsystem: meson |
| 229 | + build-commands: |
| 230 | + - mkdir -p /app/lib/i386-linux-gnu |
| 231 | + - mkdir -p /app/lib/debug/lib/i386-linux-gnu |
| 232 | + - mkdir -p /app/lib/i386-linux-gnu/GL |
| 233 | + sources: |
| 234 | + - type: git |
| 235 | + url: https://github.com/AtomsDevs/Atoms.git |
| 236 | + commit: 8230f3198ab14f72115b05e907dc5d2ead955f6a |
0 commit comments