AUR AI Reviewer

Review Results

Version #2124 of unityhub · commit 06c7c18fe6fd · status Reviewed

Risk 0/5 · Safe PKGBUILD
Result #2058

Comment

Low risk change. The diff only adjusts runtime dependencies and updates packaging to extract the Debian payload from data.tar.zst instead of data.tar.bz2, plus changes the symlink target from /opt/unityhub to /usr/lib/unityhub to match the new package layout. I did not see any added network access, privilege escalation, persistence, or suspicious install-script behavior in the reviewed hunk. The dependency changes remove some packages and add libdrm/libxcb, which are plausible for a GUI app and do not by themselves indicate malicious intent.

@@ -10,10 +10,7 @@ pkgdesc="The Unity Hub is a standalone application that streamlines the way you 
 url="https://unity.com/"
 arch=('x86_64')
 license=('custom')
-depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'xdg-utils' 'at-spi2-core' 'util-linux-libs' 'libsecret' 'cpio' 'libxml2-legacy' '7zip' 'zip' 'unzip' 'tar')
-optdepends=(
-  'libappindicator-gtk3: The official deb says this an optional dependency'
-)
+depends=('gtk3' 'libnotify' 'nss' 'libxss' 'libxtst' 'libdrm' 'xdg-utils' 'libxcb' 'at-spi2-core' 'util-linux-libs' 'libsecret' 'zip' 'unzip' 'tar')
 source=(
   "$pkgname-$pkgver.deb::https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_amd64/unityhub_${pkgver}_amd64.deb"
   'license.txt'
Risk 0/5 · Safe PKGBUILD
Result #2059

Comment

The change is low risk. It only updates the package extraction from data.tar.bz2 to data.tar.zst and adjusts the symlink target from /opt/unityhub/unityhub to the packaged /usr/lib/unityhub/unityhub path. I did not see any added network access, privilege escalation, install-script changes, or suspicious packaging behavior in this diff. The source remains the official Unity download URL over HTTPS, and the modification appears to be a straightforward packaging fix for a new archive format/layout.

@@ -29,9 +26,9 @@ options=(!strip)
 install='unityhub.install'
 
 package() {
-  tar -xf 'data.tar.bz2' -C "$pkgdir/"
+  tar -xf 'data.tar.zst' -C "$pkgdir/"
   mkdir -p "$pkgdir/usr/bin"
-  ln -sf '/opt/unityhub/unityhub' "$pkgdir/usr/bin/unityhub"
+  ln -sf "$pkgdir/usr/lib/unityhub/unityhub" "$pkgdir/usr/bin/unityhub"
 
   install -Dm644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
   install -Dm644 "$srcdir/services-config.json" "$pkgdir/usr/share/unity3d/config/services-config.json"