diff options
| author | coast <coasteen@proton.me> | 2026-10-12 14:41:07 +0330 |
|---|---|---|
| committer | coast <coasteen@proton.me> | 2026-10-12 14:41:07 +0330 |
| commit | 25922912c7e37f3bc3000e71b647e77677d8f2c5 (patch) | |
| tree | 8383c5569a668613eee384ee31ea8cddc2113ee5 /packages/app-virtualization | |
| download | exherbo-overlay-main.tar.gz exherbo-overlay-main.tar.bz2 exherbo-overlay-main.tar.xz exherbo-overlay-main.tar.zst | |
Diffstat (limited to 'packages/app-virtualization')
| -rw-r--r-- | packages/app-virtualization/bubblejail/bubblejail-0.10.4.exheres-0 | 73 | ||||
| -rw-r--r-- | packages/app-virtualization/distrobox/distrobox-1.8.2.5.exheres-0 | 54 |
2 files changed, 127 insertions, 0 deletions
diff --git a/packages/app-virtualization/bubblejail/bubblejail-0.10.4.exheres-0 b/packages/app-virtualization/bubblejail/bubblejail-0.10.4.exheres-0 new file mode 100644 index 0000000..5e96581 --- /dev/null +++ b/packages/app-virtualization/bubblejail/bubblejail-0.10.4.exheres-0 @@ -0,0 +1,73 @@ +# Copyright 2026 Gurov <thuggerthugger1@duck.com> +# Distributed under the terms of the GNU General Public License v2 + +require python [ blacklist="2 3.9 3.10" multibuild=false ] meson [ meson_minimum_version=1.3.0 ] gtk-icon-cache + +SUMMARY="Bubblewrap-based sandboxing utility" +HOMEPAGE="https://github.com/igo95862/bubblejail" +DOWNLOADS="${HOMEPAGE}/releases/download/${PV}/${PNV}.tar.xz" + +LICENCES="GPL-3+ MIT MPL-2.0" +SLOT="0" +PLATFORMS="~amd64" +MYOPTIONS="doc gui bash-completion fish-completion" + +DEPENDENCIES=" + build: + dev-python/Jinja2[python_abis:*(-)?] + doc? ( app-doc/scdoc ) + + run: + dev-python/cattrs[python_abis:*(-)?] + dev-python/pyxdg[python_abis:*(-)?] + dev-python/tomli-w[python_abis:*(-)?] + sys-apps/bubblewrap[>=0.5.0] + sys-apps/xdg-dbus-proxy + sys-libs/libseccomp + gui? ( + dev-python/PyQt6[python_abis:*(-)?] + x11-themes/hicolor-icon-theme + ) +" + +MESON_SRC_CONFIGURE_PARAMS=( -Duse-vendored-python-lxns=enabled ) +MESON_SRC_CONFIGURE_OPTION_SWITCHES=( 'doc man' ) + +src_prepare() { + meson_src_prepare + edo sed -i "1s@/usr/bin/python3@/usr/$(exhost --target)/bin/python$(python_get_abi)@" \ + templates/bubblejail_launch_base.py.jinja +} + +src_install() { + meson_src_install + + if ! option gui; then + edo rm -f "${IMAGE}/usr/$(exhost --target)/bin/bubblejail-config" \ + "${IMAGE}/usr/share/applications/bubblejail-config.desktop" \ + "${IMAGE}/usr/share/icons/hicolor/128x128/apps/bubblejail-config.png" \ + "${IMAGE}/usr/share/icons/hicolor/scalable/apps/bubblejail-config.svg" + fi + if ! option bash-completion; then + edo rm -f "${IMAGE}/usr/share/bash-completion/completions/bubblejail" + fi + if ! option fish-completion; then + edo rm -f "${IMAGE}/usr/share/fish/vendor_completions.d/bubblejail.fish" + fi + + edo find "${IMAGE}/usr/share" -depth -type d -empty -delete + keepdir /etc/bubblejail/profiles + python_bytecompile +} + +pkg_postinst() { + if option gui; then + gtk-icon-cache_pkg_postinst + fi +} + +pkg_postrm() { + if option gui; then + gtk-icon-cache_pkg_postrm + fi +} diff --git a/packages/app-virtualization/distrobox/distrobox-1.8.2.5.exheres-0 b/packages/app-virtualization/distrobox/distrobox-1.8.2.5.exheres-0 new file mode 100644 index 0000000..96b90fe --- /dev/null +++ b/packages/app-virtualization/distrobox/distrobox-1.8.2.5.exheres-0 @@ -0,0 +1,54 @@ +# Copyright 2026 Gurov <thuggerthugger1@duck.com> +# Distributed under the terms of the GNU General Public License v2 + +SUMMARY="Use any Linux distribution inside your terminal" +HOMEPAGE=" + https://distrobox.it/ + https://github.com/89luca89/distrobox +" + +DOWNLOADS=" + https://github.com/89luca89/distrobox/archive/refs/tags/${PV}.tar.gz + -> ${PNV}.tar.gz +" + +LICENCES="GPL-3" +SLOT="0" +PLATFORMS="~amd64" + +MYOPTIONS=" + gui [[ + description = [ Install Distrobox's desktop icons ] + ]] +" + +DEPENDENCIES=" + run: + || ( + app-virtualization/podman + app-virtualization/docker-cli + ) +" + +src_install() { + dobin distrobox* + + doman man/man1/* + + insinto /usr/share/bash-completion/completions + doins completions/bash/* + + insinto /usr/share/zsh/site-functions + doins completions/zsh/* + + if option gui; then + insinto /usr/share/icons/hicolor/scalable/apps + doins icons/terminal-distrobox-icon.svg + + local size + for size in 16 22 24 32 36 48 64 72 96 128 256; do + insinto "/usr/share/icons/hicolor/${size}x${size}/apps" + doins "icons/hicolor/${size}x${size}/apps/terminal-distrobox-icon.png" + done + fi +} |
