From 5e86cf9d7146dae187e1efd33fd56ff6d1cbcbd5 Mon Sep 17 00:00:00 2001 From: ston Date: Fri, 17 Mar 2023 15:38:43 +0800 Subject: [PATCH] net-im/tencent-qq: update bwrap Signed-off-by: ston --- media-libs/vips/metadata.xml | 4 +- media-libs/vips/vips-8.14.1.ebuild | 4 +- net-im/tencent-qq/files/config.json | 8 ++ .../files/start-script/merge-usr/start.sh | 89 ++++++++++++++++------ .../files/start-script/split-usr/start.sh | 89 ++++++++++++++++------ net-im/tencent-qq/files/xdg-open.sh | 10 +++ net-im/tencent-qq/metadata.xml | 2 + ...572.ebuild => tencent-qq-3.1.0_p9572-r1.ebuild} | 23 ++++-- x11-misc/flatpak-xdg-utils/Manifest | 1 + .../flatpak-xdg-utils-1.0.5.ebuild | 23 ++++++ x11-misc/flatpak-xdg-utils/metadata.xml | 13 ++++ x11-misc/snapd-xdg-open/metadata.xml | 13 ++++ x11-misc/snapd-xdg-open/snapd-xdg-open-9999.ebuild | 30 ++++++++ 13 files changed, 254 insertions(+), 55 deletions(-) create mode 100644 net-im/tencent-qq/files/config.json create mode 100644 net-im/tencent-qq/files/xdg-open.sh rename net-im/tencent-qq/{tencent-qq-3.1.0_p9572.ebuild => tencent-qq-3.1.0_p9572-r1.ebuild} (83%) create mode 100644 x11-misc/flatpak-xdg-utils/Manifest create mode 100644 x11-misc/flatpak-xdg-utils/flatpak-xdg-utils-1.0.5.ebuild create mode 100644 x11-misc/flatpak-xdg-utils/metadata.xml create mode 100644 x11-misc/snapd-xdg-open/metadata.xml create mode 100644 x11-misc/snapd-xdg-open/snapd-xdg-open-9999.ebuild diff --git a/media-libs/vips/metadata.xml b/media-libs/vips/metadata.xml index 3cc15160a..256b48d61 100644 --- a/media-libs/vips/metadata.xml +++ b/media-libs/vips/metadata.xml @@ -6,7 +6,9 @@ pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> Enable support for the FITS image format through sci-libs/cfitsio - + Enable support for reading images from + Matlab files through + sci-libs/matio Enable support for creating image pyramids with dzsave diff --git a/media-libs/vips/vips-8.14.1.ebuild b/media-libs/vips/vips-8.14.1.ebuild index 90c4e9257..76ef7398e 100644 --- a/media-libs/vips/vips-8.14.1.ebuild +++ b/media-libs/vips/vips-8.14.1.ebuild @@ -12,7 +12,7 @@ HOMEPAGE="https://libvips.github.io/libvips/" LICENSE="LGPL-2.1+" SLOT="1" KEYWORDS="~amd64 ~arm64" -IUSE="doc exif fftw fits heif gsf graphicsmagick imagemagick imagequant jpeg lcms openexr orc pango pdf png svg static-libs tiff webp zlib" +IUSE="doc exif fftw fits heif gsf graphicsmagick imagemagick imagequant jpeg lcms openexr orc pango pdf png svg static-libs tiff webp zlib matio" RDEPEND=" >=dev-libs/glib-2.6:2 @@ -38,6 +38,7 @@ RDEPEND=" tiff? ( media-libs/tiff:0= ) webp? ( media-libs/libwebp ) zlib? ( sys-libs/zlib ) + matio? ( sci-libs/matio ) " DEPEND=" @@ -69,6 +70,7 @@ src_configure() { $(meson_feature tiff) $(meson_feature webp) $(meson_feature zlib) + $(meson_feature matio) ) meson_src_configure } diff --git a/net-im/tencent-qq/files/config.json b/net-im/tencent-qq/files/config.json new file mode 100644 index 000000000..e30528141 --- /dev/null +++ b/net-im/tencent-qq/files/config.json @@ -0,0 +1,8 @@ +{ + "baseVersion": "3.1.0-9572", + "currentVersion": "3.1.0-9572", + "buildVersion": "9572", + "skippedVersions": [], + "inUsePkg": "", + "hasRan": false +} diff --git a/net-im/tencent-qq/files/start-script/merge-usr/start.sh b/net-im/tencent-qq/files/start-script/merge-usr/start.sh index dc0c552e6..564b24f35 100644 --- a/net-im/tencent-qq/files/start-script/merge-usr/start.sh +++ b/net-im/tencent-qq/files/start-script/merge-usr/start.sh @@ -1,22 +1,45 @@ #!/bin/bash -# From https://aur.archlinux.org/packages/linuxqq-nt-bwrap +# https://aur.archlinux.org/cgit/aur.git/tree/start.sh?h=linuxqq-nt-bwrap USER_RUN_DIR="/run/user/$(id -u)" -CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}" -FONTCONFIG_DIR="${CONFIG_DIR}/fontconfig" -QQ_APP_DIR="${CONFIG_DIR}/QQ" -DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)" -NEW_DISPLAY="${DISPLAY}" +XAUTHORITY="${XAUTHORITY:-$HOME/.Xauthority}" +XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +FONTCONFIG_HOME="${XDG_CONFIG_HOME}/fontconfig" +QQ_APP_DIR="${XDG_CONFIG_HOME}/QQ" +if [ -z "${QQ_DOWNLOAD_DIR}" ]; then + if [ -z "${XDG_DOWNLOAD_DIR}" ]; then + XDG_DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)" + fi + QQ_DOWNLOAD_DIR="${XDG_DOWNLOAD_DIR:-$HOME/Downloads}" +fi +set -euo pipefail + +flags_file="${XDG_CONFIG_HOME}/qq-electron-flags.conf" + +declare -a flags + +if [[ -f "${flags_file}" ]]; then + mapfile -t <"${flags_file}" +fi + +for line in "${MAPFILE[@]}"; do + if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then + flags+=("${line}") + fi +done + QQ_HOTUPDATE_DIR="${QQ_APP_DIR}/versions" -QQ_HOTUPDATE_VERSION="2.0.3-543" -QQ_PREVIOUS_VERSIONS=("2.0.1-429" "2.0.1-453" "2.0.2-510") +QQ_HOTUPDATE_VERSION="3.1.0-9572" +QQ_PREVIOUS_VERSIONS=("2.0.1-429" "2.0.1-453" "2.0.2-510" "2.0.3-543" "3.0.0-565" "3.0.0-571" "3.1.0-9332") -if [ "${DOWNLOAD_DIR}" == "${HOME}" ]; then - DOWNLOAD_DIR="${HOME}/Downloads" - if [ ! -e "${DOWNLOAD_DIR}" ]; then mkdir -p "${DOWNLOAD_DIR}"; fi +if [ "${QQ_DOWNLOAD_DIR%*/}" == "${HOME}" ]; then + QQ_DOWNLOAD_DIR="${HOME}/Downloads" + if [ ! -d "${QQ_DOWNLOAD_DIR}" ]; then mkdir -p "${QQ_DOWNLOAD_DIR}"; fi fi -if [ ! -e "${QQ_APP_DIR}" ]; then mkdir -p "${QQ_APP_DIR}"; fi -if [ ! -e "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}" ]; then ln -sfd "/opt/QQ/resources/app" "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}"; fi + +if [ ! -d "${QQ_APP_DIR}" ]; then mkdir -p "${QQ_APP_DIR}"; fi +if [ ! -d "${QQ_APP_DIR}/versions" ]; then mkdir -p "${QQ_APP_DIR}/versions"; fi +if [ ! -d "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}" ]; then ln -sfd "/opt/QQ/resources/app" "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}"; fi rm -rf "${QQ_HOTUPDATE_DIR}/"**".zip" # 处理 config.json @@ -34,13 +57,16 @@ else done fi -bwrap --new-session --die-with-parent --cap-drop ALL --unshare-user-try --unshare-pid --unshare-cgroup-try \ +bwrap --new-session --cap-drop ALL --unshare-user-try --unshare-pid --unshare-cgroup-try \ --symlink usr/lib /lib \ --symlink usr/lib64 /lib64 \ --symlink usr/bin /bin \ - --ro-bind /usr /usr \ - --ro-bind /opt/QQ /opt/QQ \ --ro-bind /etc/ld.so.cache /etc/ld.so.cache \ + --ro-bind /usr /usr \ + --ro-bind /opt /opt \ + --ro-bind /opt/QQ/workarounds/xdg-open.sh /usr/bin/xdg-open \ + --ro-bind /usr/lib/snapd-xdg-open/xdg-open /snapd-xdg-open \ + --ro-bind /usr/lib/flatpak-xdg-utils/xdg-open /flatpak-xdg-open \ --dev-bind /dev /dev \ --ro-bind /sys /sys \ --ro-bind /etc/passwd /etc/passwd \ @@ -50,17 +76,34 @@ bwrap --new-session --die-with-parent --cap-drop ALL --unshare-user-try --unshar --dev-bind /run/dbus /run/dbus \ --bind "${USER_RUN_DIR}" "${USER_RUN_DIR}" \ --ro-bind-try /etc/fonts /etc/fonts \ - --ro-bind-try "${FONTCONFIG_DIR}" "${FONTCONFIG_DIR}" \ --dev-bind /tmp /tmp \ --bind-try "${HOME}/.pki" "${HOME}/.pki" \ --ro-bind-try "${XAUTHORITY}" "${XAUTHORITY}" \ - --bind-try "${DOWNLOAD_DIR}" "${DOWNLOAD_DIR}" \ + --bind-try "${QQ_DOWNLOAD_DIR}" "${QQ_DOWNLOAD_DIR}" \ --bind "${QQ_APP_DIR}" "${QQ_APP_DIR}" \ + --ro-bind-try "${FONTCONFIG_HOME}" "${FONTCONFIG_HOME}" \ + --ro-bind-try "${HOME}/.icons" "${HOME}/.icons" \ + --ro-bind-try "${HOME}/local/share/.icons" "${HOME}/local/share/.icons" \ + --ro-bind-try "${XDG_CONFIG_HOME}/gtk-3.0" "${XDG_CONFIG_HOME}/gtk-3.0" \ --setenv IBUS_USE_PORTAL 1 \ - --setenv DISPLAY "${NEW_DISPLAY}" \ - /opt/QQ/qq "$@" + /opt/QQ/qq "${flags[@]}" "$@" # 移除无用崩溃报告和日志 -# 如果需要向腾讯反馈 bug,请注释掉如下两行 -rm -rf "${QQ_APP_DIR}/crash_files" -rm -rf "${QQ_APP_DIR}/nt_qq_"**"/nt_data/log/"* +# 如果需要向腾讯反馈 bug,请注释掉如下几行 +if [ -d "${QQ_APP_DIR}/crash_files" ]; then + rm -rf "${QQ_APP_DIR}/crash_files" +fi +if [ -d "${QQ_APP_DIR}/log" ]; then + rm -rf "${QQ_APP_DIR}/log" +fi +for nt_qq_userdata in "${QQ_APP_DIR}/nt_qq_"*; do + if [ -d "${nt_qq_userdata}/log" ]; then + rm -rf "${nt_qq_userdata}/log" + fi + if [ -d "${nt_qq_userdata}/log-cache" ]; then + rm -rf "${nt_qq_userdata}/log-cache" + fi +done +if [ -d "${QQ_APP_DIR}/Crashpad" ]; then + rm -rf "${QQ_APP_DIR}/Crashpad" +fi diff --git a/net-im/tencent-qq/files/start-script/split-usr/start.sh b/net-im/tencent-qq/files/start-script/split-usr/start.sh index a72456f18..94f96e621 100644 --- a/net-im/tencent-qq/files/start-script/split-usr/start.sh +++ b/net-im/tencent-qq/files/start-script/split-usr/start.sh @@ -1,22 +1,45 @@ #!/bin/bash -# From https://aur.archlinux.org/packages/linuxqq-nt-bwrap +# https://aur.archlinux.org/cgit/aur.git/tree/start.sh?h=linuxqq-nt-bwrap USER_RUN_DIR="/run/user/$(id -u)" -CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}" -FONTCONFIG_DIR="${CONFIG_DIR}/fontconfig" -QQ_APP_DIR="${CONFIG_DIR}/QQ" -DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)" -NEW_DISPLAY="${DISPLAY}" +XAUTHORITY="${XAUTHORITY:-$HOME/.Xauthority}" +XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +FONTCONFIG_HOME="${XDG_CONFIG_HOME}/fontconfig" +QQ_APP_DIR="${XDG_CONFIG_HOME}/QQ" +if [ -z "${QQ_DOWNLOAD_DIR}" ]; then + if [ -z "${XDG_DOWNLOAD_DIR}" ]; then + XDG_DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)" + fi + QQ_DOWNLOAD_DIR="${XDG_DOWNLOAD_DIR:-$HOME/Downloads}" +fi +set -euo pipefail + +flags_file="${XDG_CONFIG_HOME}/qq-electron-flags.conf" + +declare -a flags + +if [[ -f "${flags_file}" ]]; then + mapfile -t <"${flags_file}" +fi + +for line in "${MAPFILE[@]}"; do + if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then + flags+=("${line}") + fi +done + QQ_HOTUPDATE_DIR="${QQ_APP_DIR}/versions" -QQ_HOTUPDATE_VERSION="2.0.3-543" -QQ_PREVIOUS_VERSIONS=("2.0.1-429" "2.0.1-453" "2.0.2-510") +QQ_HOTUPDATE_VERSION="3.1.0-9572" +QQ_PREVIOUS_VERSIONS=("2.0.1-429" "2.0.1-453" "2.0.2-510" "2.0.3-543" "3.0.0-565" "3.0.0-571" "3.1.0-9332") -if [ "${DOWNLOAD_DIR}" == "${HOME}" ]; then - DOWNLOAD_DIR="${HOME}/Downloads" - if [ ! -e "${DOWNLOAD_DIR}" ]; then mkdir -p "${DOWNLOAD_DIR}"; fi +if [ "${QQ_DOWNLOAD_DIR%*/}" == "${HOME}" ]; then + QQ_DOWNLOAD_DIR="${HOME}/Downloads" + if [ ! -d "${QQ_DOWNLOAD_DIR}" ]; then mkdir -p "${QQ_DOWNLOAD_DIR}"; fi fi -if [ ! -e "${QQ_APP_DIR}" ]; then mkdir -p "${QQ_APP_DIR}"; fi -if [ ! -e "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}" ]; then ln -sfd "/opt/QQ/resources/app" "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}"; fi + +if [ ! -d "${QQ_APP_DIR}" ]; then mkdir -p "${QQ_APP_DIR}"; fi +if [ ! -d "${QQ_APP_DIR}/versions" ]; then mkdir -p "${QQ_APP_DIR}/versions"; fi +if [ ! -d "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}" ]; then ln -sfd "/opt/QQ/resources/app" "${QQ_HOTUPDATE_DIR}/${QQ_HOTUPDATE_VERSION}"; fi rm -rf "${QQ_HOTUPDATE_DIR}/"**".zip" # 处理 config.json @@ -34,13 +57,16 @@ else done fi -bwrap --new-session --die-with-parent --cap-drop ALL --unshare-user-try --unshare-pid --unshare-cgroup-try \ +bwrap --new-session --cap-drop ALL --unshare-user-try --unshare-pid --unshare-cgroup-try \ --ro-bind /lib /lib \ --ro-bind /lib64 /lib64 \ --ro-bind /bin /bin \ - --ro-bind /usr /usr \ - --ro-bind /opt/QQ /opt/QQ \ --ro-bind /etc/ld.so.cache /etc/ld.so.cache \ + --ro-bind /usr /usr \ + --ro-bind /opt /opt \ + --ro-bind /opt/QQ/workarounds/xdg-open.sh /usr/bin/xdg-open \ + --ro-bind /usr/lib/snapd-xdg-open/xdg-open /snapd-xdg-open \ + --ro-bind /usr/lib/flatpak-xdg-utils/xdg-open /flatpak-xdg-open \ --dev-bind /dev /dev \ --ro-bind /sys /sys \ --ro-bind /etc/passwd /etc/passwd \ @@ -50,17 +76,34 @@ bwrap --new-session --die-with-parent --cap-drop ALL --unshare-user-try --unshar --dev-bind /run/dbus /run/dbus \ --bind "${USER_RUN_DIR}" "${USER_RUN_DIR}" \ --ro-bind-try /etc/fonts /etc/fonts \ - --ro-bind-try "${FONTCONFIG_DIR}" "${FONTCONFIG_DIR}" \ --dev-bind /tmp /tmp \ --bind-try "${HOME}/.pki" "${HOME}/.pki" \ --ro-bind-try "${XAUTHORITY}" "${XAUTHORITY}" \ - --bind-try "${DOWNLOAD_DIR}" "${DOWNLOAD_DIR}" \ + --bind-try "${QQ_DOWNLOAD_DIR}" "${QQ_DOWNLOAD_DIR}" \ --bind "${QQ_APP_DIR}" "${QQ_APP_DIR}" \ + --ro-bind-try "${FONTCONFIG_HOME}" "${FONTCONFIG_HOME}" \ + --ro-bind-try "${HOME}/.icons" "${HOME}/.icons" \ + --ro-bind-try "${HOME}/local/share/.icons" "${HOME}/local/share/.icons" \ + --ro-bind-try "${XDG_CONFIG_HOME}/gtk-3.0" "${XDG_CONFIG_HOME}/gtk-3.0" \ --setenv IBUS_USE_PORTAL 1 \ - --setenv DISPLAY "${NEW_DISPLAY}" \ - /opt/QQ/qq "$@" + /opt/QQ/qq "${flags[@]}" "$@" /opt/QQ/resources/app # 移除无用崩溃报告和日志 -# 如果需要向腾讯反馈 bug,请注释掉如下两行 -rm -rf "${QQ_APP_DIR}/crash_files" -rm -rf "${QQ_APP_DIR}/nt_qq_"**"/nt_data/log/"* +# 如果需要向腾讯反馈 bug,请注释掉如下几行 +if [ -d "${QQ_APP_DIR}/crash_files" ]; then + rm -rf "${QQ_APP_DIR}/crash_files" +fi +if [ -d "${QQ_APP_DIR}/log" ]; then + rm -rf "${QQ_APP_DIR}/log" +fi +for nt_qq_userdata in "${QQ_APP_DIR}/nt_qq_"*; do + if [ -d "${nt_qq_userdata}/log" ]; then + rm -rf "${nt_qq_userdata}/log" + fi + if [ -d "${nt_qq_userdata}/log-cache" ]; then + rm -rf "${nt_qq_userdata}/log-cache" + fi +done +if [ -d "${QQ_APP_DIR}/Crashpad" ]; then + rm -rf "${QQ_APP_DIR}/Crashpad" +fi diff --git a/net-im/tencent-qq/files/xdg-open.sh b/net-im/tencent-qq/files/xdg-open.sh new file mode 100644 index 000000000..25739c3f8 --- /dev/null +++ b/net-im/tencent-qq/files/xdg-open.sh @@ -0,0 +1,10 @@ +#!/bin/bash +URI_TO_OPEN="$1" + +if ! [ "${URI_TO_OPEN:0:8}" == "jsbridge" ]; then + if [ "${URI_TO_OPEN:0:4}" == "http" ]; then + /snapd-xdg-open "$URI_TO_OPEN" + else + /flatpak-xdg-open "$URI_TO_OPEN" + fi +fi diff --git a/net-im/tencent-qq/metadata.xml b/net-im/tencent-qq/metadata.xml index 550a96b12..0071ace31 100644 --- a/net-im/tencent-qq/metadata.xml +++ b/net-im/tencent-qq/metadata.xml @@ -15,5 +15,7 @@ pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> private information leakage Use media-libs/vips instead of shipped libs. + Supporting screenshot when using + GNOME diff --git a/net-im/tencent-qq/tencent-qq-3.1.0_p9572.ebuild b/net-im/tencent-qq/tencent-qq-3.1.0_p9572-r1.ebuild similarity index 83% rename from net-im/tencent-qq/tencent-qq-3.1.0_p9572.ebuild rename to net-im/tencent-qq/tencent-qq-3.1.0_p9572-r1.ebuild index 67226317e..7276313a8 100644 --- a/net-im/tencent-qq/tencent-qq-3.1.0_p9572.ebuild +++ b/net-im/tencent-qq/tencent-qq-3.1.0_p9572-r1.ebuild @@ -22,7 +22,7 @@ SRC_URI=" SLOT="0" KEYWORDS="-* ~amd64 ~arm64" -IUSE="bwrap +system-vips split-usr" +IUSE="bwrap +system-vips split-usr gnome" RDEPEND=" x11-libs/gtk+:3 x11-libs/libnotify @@ -40,7 +40,12 @@ RDEPEND=" dev-libs/glib >=media-libs/vips-8.14.1 ) - bwrap? ( sys-apps/bubblewrap ) + bwrap? ( + sys-apps/bubblewrap + x11-misc/snapd-xdg-open + x11-misc/flatpak-xdg-utils + ) + gnome? ( dev-libs/gjs ) " S=${WORKDIR} @@ -54,11 +59,6 @@ src_install() { fi fperms +x /opt/QQ/{qq,chrome_crashpad_handler,chrome-sandbox,libEGL.so,libffmpeg.so,libGLESv2.so,libvk_swiftshader.so,libvulkan.so.1} - printf "#!/bin/bash\ncd /opt/QQ\n./qq \$@\n" >qq || die - if use bwrap; then - sed -i 's!./qq!/opt/QQ/start.sh!' qq || die - fi - dobin qq if use bwrap; then exeinto /opt/QQ @@ -68,10 +68,19 @@ src_install() { doexe "${FILESDIR}"/start-script/merge-usr/start.sh fi sed -i 's!/opt/QQ/qq!/opt/QQ/start.sh!' usr/share/applications/qq.desktop || die + insinto /opt/QQ/workarounds + doins "${FILESDIR}"/{config.json,xdg-open.sh} + fperms +x /opt/QQ/workarounds/xdg-open.sh else sed -i 's!/opt/QQ/qq!/usr/bin/qq!' usr/share/applications/qq.desktop || die fi + if use bwrap; then + dosym -r /opt/QQ/start.sh /usr/bin/qq + else + dosym -r /opt/QQ/qq /usr/bin/qq + fi + sed -i 's!/usr/share/icons/hicolor/512x512/apps/qq.png!qq!' usr/share/applications/qq.desktop || die domenu usr/share/applications/qq.desktop doicon -s 512 usr/share/icons/hicolor/512x512/apps/qq.png diff --git a/x11-misc/flatpak-xdg-utils/Manifest b/x11-misc/flatpak-xdg-utils/Manifest new file mode 100644 index 000000000..65284c57b --- /dev/null +++ b/x11-misc/flatpak-xdg-utils/Manifest @@ -0,0 +1 @@ +DIST flatpak-xdg-utils-1.0.5.tar.xz 36744 BLAKE2B 5fb4a1bf65e94e767cacc627e53caba72fa3a077e6f058ceb366f50f704716248baba378de84addf5c7bb45c748b151fc8b9a7f00ef87cc778be1c7bfc17cdf9 SHA512 71c55cc01dc962c1b419821160626c46111ad672241f7627dbf780790d4f9f320151f479264ffc188334488f43dee8f4f7aa7754040e9c6231c200ea281f6439 diff --git a/x11-misc/flatpak-xdg-utils/flatpak-xdg-utils-1.0.5.ebuild b/x11-misc/flatpak-xdg-utils/flatpak-xdg-utils-1.0.5.ebuild new file mode 100644 index 000000000..e77f86740 --- /dev/null +++ b/x11-misc/flatpak-xdg-utils/flatpak-xdg-utils-1.0.5.ebuild @@ -0,0 +1,23 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Utilities for containerized apps to launch programs outside the container" +HOMEPAGE="https://github.com/flatpak/flatpak-xdg-utils" +SRC_URI="https://github.com/flatpak/flatpak-xdg-utils/releases/download/${PV}/flatpak-xdg-utils-${PV}.tar.xz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" + +src_configure() { + meson_src_configure --bindir=/usr/lib/"${PN}" +} + +src_install() { + meson_src_install + dosym -r /usr/lib/"${PN}"/flatpak-spawn /usr/bin/flatpak-spawn +} diff --git a/x11-misc/flatpak-xdg-utils/metadata.xml b/x11-misc/flatpak-xdg-utils/metadata.xml new file mode 100644 index 000000000..4d499d88b --- /dev/null +++ b/x11-misc/flatpak-xdg-utils/metadata.xml @@ -0,0 +1,13 @@ + + + + + ston + ston.jia@qq.com + + + + flatpak/flatpak-xdg-utils + + diff --git a/x11-misc/snapd-xdg-open/metadata.xml b/x11-misc/snapd-xdg-open/metadata.xml new file mode 100644 index 000000000..c7e7ca773 --- /dev/null +++ b/x11-misc/snapd-xdg-open/metadata.xml @@ -0,0 +1,13 @@ + + + + + ston + ston.jia@qq.com + + + + snapcore/snapd-xdg-open + + diff --git a/x11-misc/snapd-xdg-open/snapd-xdg-open-9999.ebuild b/x11-misc/snapd-xdg-open/snapd-xdg-open-9999.ebuild new file mode 100644 index 000000000..5372d46c0 --- /dev/null +++ b/x11-misc/snapd-xdg-open/snapd-xdg-open-9999.ebuild @@ -0,0 +1,30 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit git-r3 autotools + +DESCRIPTION="Software for opening links from snaps in desktop" +HOMEPAGE="https://github.com/snapcore/snapd-xdg-open" +EGIT_REPO_URI="https://github.com/snapcore/snapd-xdg-open.git" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf --prefix=/usr \ + --libexecdir=/usr/lib/"${PN}" +} + +src_install() { + default + exeinto /usr/lib/"${PN}" + doexe src/xdg-open +} -- 2.11.4.GIT