qaac-wine
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (anthropic/claude-4.6-sonnet-20260217) reviewed the full PKGBUILD and judged it LOW (confidence 82%): The PKGBUILD downloads the iTunes installer from apple.com (official Apple domain) to extract Apple DLLs (CoreAudioToolbox, CoreFoundation, etc.) needed by qaac under Wine. This is a well-known, documented technique for running qaac on Linux. The iTunes installer has 'SKIP' for its checksum, which is sloppy but understandable since Apple updates the installer in-place at the same URL. The extracted DLLs are Apple's own libraries, not third-party or personal-host binaries. The qaac binaries themselves come from the official GitHub releases with a proper sha256sum. The COPYING and PDF also have SKIP checksums but are pure data/documentation. The check() function runs the Windows executables under Wine to verify they work. There is no unofficial or personal host involved — all sources are either GitHub official releases or apple.com. The missing checksums are a quality/reproducibility concern but not a meaningful supply-chain attack vector given the sources are official. This does not rise to medium severity.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:19
"iTunes64Setup.exe::https://www.apple.com/itunes/download/win64"
PKGBUILD
1 offending line(s) highlighted# Maintainer: Jianfeng Zhang <swordfeng123@gmail.com>
#
# Idea from http://www.andrews-corner.org/qaac.html
# Use at your own risk. Please read the COPYING and
# Apple Software License Agreement for iTunes for Windows
# carefully before use. Do NOT use if you disagree with them.
pkgname=qaac-wine
_pkgname=qaac
pkgver=2.88
pkgrel=1
pkgdesc="QuickTime AAC/ALAC encoder (wine version)"
arch=('x86_64')
url="https://github.com/nu774/qaac"
license=('custom')
depends=('wine')
makedepends=('p7zip' 'wine' 'winetricks' 'binutils')
source=("https://github.com/nu774/qaac/releases/download/v${pkgver}/qaac_${pkgver}.zip"
"iTunes64Setup.exe::https://www.apple.com/itunes/download/win64"
"https://raw.githubusercontent.com/nu774/qaac/master/COPYING"
"https://www.apple.com/legal/sla/docs/iTunesWindows.pdf"
"wrapper.sh")
sha256sums=('1260ab096425f2c49042562c7ce1735435e681db60f14497df81e7b6d88fa118'
'SKIP'
'SKIP'
'SKIP'
'6591c998319680a4474ee93ffc3a50c9be143e53f2e636d8fe66538cde6aa1e3')
extract_filename() {
if [ "$(head -c 2 "$1" | tr -d '\0')" == "MZ" ]; then
LC_ALL=C objdump -p "$f" 2>/dev/null | grep 'The Export Tables' -A 10 | awk '$1 == "Name" { print $3 }'
fi
}
build() {
cd "${srcdir}"
#mkdir -p wineprefix
#export WINEPREFIX=$PWD/wineprefix
#export WINEARCH=win64
#wineserver -k || true
#DISPLAY= winetricks win7
#WINEDLLOVERRIDES=winemenubuilder.exe=d msiexec /i "${srcdir}/iTunes64.msi" /qn
#wineserver -k || true
7z x -y iTunes64.msi
for f in fil*; do
filename=$(extract_filename "$f")
if [ ! -z "$filename" ]; then
echo "$filename"
mv "$f" "$filename"
fi
done
}
check() {
export WINEDEBUG=-all
export WINEPATH="${srcdir}"
export WINEPREFIX="${srcdir}/wineprefix"
wine "${srcdir}/qaac_${pkgver}/x64/qaac64.exe" --check && \
wine "${srcdir}/qaac_${pkgver}/x64/refalac64.exe" --check
}
package() {
mkdir -p "${pkgdir}/usr/lib/qaac"
cd "${srcdir}"
for f in qaac64.exe refalac64.exe; do
install -Dm755 "qaac_${pkgver}/x64/${f}" "${pkgdir}/usr/lib/qaac/${f}"
done
for f in libsoxconvolver64.dll libsoxr64.dll; do
install -Dm644 "qaac_${pkgver}/x64/${f}" "${pkgdir}/usr/lib/qaac/${f}"
done
local LIBICUDT_NAME=$(find . -name 'icudt*.dll' -printf '%f')
for f in ASL.dll CoreAudioToolbox.dll CoreFoundation.dll $LIBICUDT_NAME libdispatch.dll libicuin.dll libicuuc.dll objc.dll; do
install -Dm644 "${f}" "${pkgdir}/usr/lib/qaac/${f}"
done
install -Dm755 wrapper.sh "${pkgdir}/usr/lib/qaac/wrapper.sh"
mkdir -p "${pkgdir}/usr/bin"
ln -s ../lib/qaac/wrapper.sh "${pkgdir}/usr/bin/qaac"
ln -s ../lib/qaac/wrapper.sh "${pkgdir}/usr/bin/refalac"
mkdir -p "${pkgdir}/usr/share/licenses/qaac"
install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/qaac/COPYING"
install -Dm644 "iTunesWindows.pdf" "${pkgdir}/usr/share/licenses/qaac/iTunesWindows.pdf"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-03 00:08:14 | LOW | 2 |
| 2026-08-02 00:16:08 | LOW | 2 |
| 2026-08-01 00:11:18 | LOW | 2 |
| 2026-07-31 00:14:10 | LOW | 2 |
| 2026-07-30 00:17:23 | LOW | 2 |
| 2026-07-29 00:25:53 | LOW | 2 |
| 2026-07-28 00:07:28 | LOW | 2 |
| 2026-07-27 00:24:32 | LOW | 2 |
| 2026-07-26 00:07:32 | LOW | 2 |
| 2026-07-25 00:13:44 | LOW | 2 |
| 2026-07-24 00:02:28 | LOW | 2 |
| 2026-07-23 00:14:47 | LOW | 2 |
| 2026-07-22 00:29:32 | LOW | 2 |
| 2026-07-21 00:24:15 | LOW | 2 |
| 2026-07-20 00:19:49 | LOW | 2 |
| 2026-07-19 00:17:08 | LOW | 2 |
| 2026-07-18 00:14:48 | LOW | 2 |
| 2026-07-17 00:06:16 | LOW | 2 |
| 2026-07-16 00:05:41 | LOW | 2 |
| 2026-07-15 00:09:25 | LOW | 2 |