diff options
author | sukanka | 2023-07-21 20:35:51 +0800 |
---|---|---|
committer | sukanka | 2023-07-21 20:35:51 +0800 |
commit | a75d69f560ee9e2ca75be44603e2e71a3dcf9a3b (patch) | |
tree | a7a8eba55a53c69c93f7dace0c33a14473c40f18 | |
parent | cc263a0e6f5881292cc3662d2ef983e6a8b003a1 (diff) | |
download | aur-a75d69f560ee9e2ca75be44603e2e71a3dcf9a3b.tar.gz |
use system libs
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rwxr-xr-x | start.sh | 2 |
3 files changed, 14 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = linuxqq-nt-bwrap pkgdesc = New Linux QQ based on Electron, with bubblewrap sandbox and some tweaks pkgver = 3.1.2_13107 - pkgrel = 3 + pkgrel = 4 url = https://im.qq.com/linuxqq/index.shtml install = linuxqq-nt-bwrap.install arch = x86_64 @@ -23,17 +23,17 @@ pkgbase = linuxqq-nt-bwrap depends = libvips depends = openslide depends = autoconf + depends = libunwind optdepends = libappindicator-gtk3: 以显示托盘图标 optdepends = gjs: 提供 GNOME Wayland 下的截图支持 provides = qq provides = linuxqq conflicts = linuxqq - options = !strip options = !emptydirs source = start.sh source = config.json source = xdg-open.sh - sha256sums = 475cf924e27999dcbd7af9314091b681f99f3bdef3bdffe0719a44cf1e0941d8 + sha256sums = 4e1514ae8a666732c21f7f89455141f67e3a6f8290b0f97ea503c39f2c419f0e sha256sums = 182e3cc60e9c7f4643043c398f42b7d021bce4e79490e043de195056aa851481 sha256sums = 78a573867355fb4c3e728d0c8ac0746d47fa7d64f90ee2b62ee9f0ccae095edb source_x86_64 = https://dldir1.qq.com/qqfile/qq/QQNT/2355235c/linuxqq_3.1.1-11223_amd64.deb @@ -9,25 +9,29 @@ _update_pkgver_hash=c893f6be pkgname=linuxqq-nt-bwrap pkgver="${_update_pkgver}" -pkgrel=3 +pkgrel=4 pkgdesc="New Linux QQ based on Electron, with bubblewrap sandbox and some tweaks" arch=('x86_64' 'aarch64') # 龙架构版本停留在 3.1.0 未更新,故不纳入此包中 url='https://im.qq.com/linuxqq/index.shtml' license=('custom') -depends=('at-spi2-core' 'alsa-lib' 'desktop-file-utils' 'gtk3' 'gtk-update-icon-cache' 'libnotify' 'nss' 'gnutls' 'bubblewrap' 'xdg-user-dirs' 'flatpak-xdg-utils' 'snapd-xdg-open-git' 'libvips' 'openslide' 'autoconf') +depends=('at-spi2-core' 'alsa-lib' 'desktop-file-utils' 'gtk3' 'gtk-update-icon-cache' 'libnotify' 'nss' +'gnutls' 'bubblewrap' 'xdg-user-dirs' 'flatpak-xdg-utils' 'snapd-xdg-open-git' +'libvips' 'openslide' 'autoconf' +'libunwind' +) makedepends=('p7zip') optdepends=('libappindicator-gtk3: 以显示托盘图标' 'gjs: 提供 GNOME Wayland 下的截图支持') provides=('qq' 'linuxqq') conflicts=('linuxqq') -options=('!strip' '!emptydirs') +options=('!emptydirs') install="${pkgname}.install" source_x86_64=("https://dldir1.qq.com/qqfile/qq/QQNT/${_base_pkgver_hash}/linuxqq_${_base_pkgver//_/-}_amd64.deb" # 底包 "https://qqpatch.gtimg.cn/hotUpdate_new/release/linux-x64/${pkgver//_/-}/${_update_pkgver_hash}/${pkgver//_/-}.zip.zip" ) # 热更新补丁 source_aarch64=("https://dldir1.qq.com/qqfile/qq/QQNT/${_base_pkgver_hash}/linuxqq_${_base_pkgver//_/-}_arm64.deb" # 底包 "https://qqpatch.gtimg.cn/hotUpdate_new/release/linux-arm64/${pkgver//_/-}/${_update_pkgver_hash}/${pkgver//_/-}.zip.zip" ) # 热更新补丁 source=('start.sh' 'config.json' 'xdg-open.sh') -sha256sums=('475cf924e27999dcbd7af9314091b681f99f3bdef3bdffe0719a44cf1e0941d8' +sha256sums=('4e1514ae8a666732c21f7f89455141f67e3a6f8290b0f97ea503c39f2c419f0e' '182e3cc60e9c7f4643043c398f42b7d021bce4e79490e043de195056aa851481' '78a573867355fb4c3e728d0c8ac0746d47fa7d64f90ee2b62ee9f0ccae095edb') sha256sums_x86_64=('4c1810ef357e8ee077292808217bafc67626be79ccff5ff05341248a8a48aaf6' @@ -57,7 +61,7 @@ package() { ln -s "/opt/QQ/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSES.chromium.html" # 临时解决方案: 删除 linuxqq 自带的 libvips 以解决浏览图片崩溃问题 - rm -f "${pkgdir}/opt/QQ/resources/app/sharp-lib/libvips-cpp.so.42" + rm -f "${pkgdir}"/opt/QQ/resources/app/{libssh2.so.1,libunwind*,sharp-lib/libvips-cpp.so.42} # 对 desktop 文件做处理,使其使用正确的图标,启动 start.sh cp "${srcdir}/start.sh" "${pkgdir}/opt/QQ/start.sh" @@ -94,6 +94,8 @@ bwrap --new-session --cap-drop ALL --unshare-user-try --unshare-pid --unshare-cg --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" \ + --ro-bind /etc/nsswitch.conf /etc/nsswitch.conf \ + --ro-bind /run/systemd/userdb/ /run/systemd/userdb/ \ --setenv IBUS_USE_PORTAL 1 \ /opt/QQ/electron "${flags[@]}" "$@" /opt/QQ/resources/app |