diff options
author | Jianfeng Zhang | 2019-09-08 17:57:09 -0700 |
---|---|---|
committer | Jianfeng Zhang | 2019-09-08 17:57:09 -0700 |
commit | 267c75c068e071f4ec149bc0178257e99d3cc8e0 (patch) | |
tree | eedecb925c553cb697a2092e377b2bc9a0784880 | |
download | aur-267c75c068e071f4ec149bc0178257e99d3cc8e0.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 56 |
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..04c4c7d8b88e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = qaac-wine + pkgdesc = QuickTime AAC/ALAC encoder (wine version) + pkgver = 2.68 + pkgrel = 1 + url = https://sites.google.com/site/qaacpage/ + arch = x86_64 + license = custom + makedepends = p7zip + depends = wine + source = https://github.com/nu774/qaac/releases/download/v2.68/qaac_2.68.zip + source = iTunes64Setup.exe::https://www.apple.com/itunes/download/win64 + source = https://raw.githubusercontent.com/nu774/qaac/master/COPYING + source = https://www.apple.com/legal/sla/docs/iTunesWindows.pdf + sha256sums = 8067826564d182a239a2347b40d52369c4a378b7df7918bd156138bf904168d0 + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + +pkgname = qaac-wine + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5559fafc283e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# 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.68 +pkgrel=1 +pkgdesc="QuickTime AAC/ALAC encoder (wine version)" +arch=('x86_64') +url="https://sites.google.com/site/qaacpage/" +license=('custom') +depends=('wine') +makedepends=('p7zip') +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") +sha256sums=('8067826564d182a239a2347b40d52369c4a378b7df7918bd156138bf904168d0' + 'SKIP' + 'SKIP' + 'SKIP') + +build() { + cd "${srcdir}" + mkdir -p AppleApplicationSupport64 + cd AppleApplicationSupport64 + 7z x -y ../AppleApplicationSupport64.msi +} + +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="$(ls AppleApplicationSupport64/*icudt*.dll | sed 's/.*icudt/icudt/')" + for f in ASL.dll CoreAudioToolbox.dll CoreFoundation.dll $LIBICUDT_NAME libdispatch.dll libicuin.dll libicuuc.dll objc.dll; do + install -Dm644 "AppleApplicationSupport64/x64_AppleApplicationSupport_${f}" "${pkgdir}/usr/lib/qaac/${f}" + done + + mkdir -p "${pkgdir}/usr/bin" + ln -s "../lib/qaac/qaac64.exe" "${pkgdir}/usr/bin/qaac" + ln -s "../lib/qaac/refalac64.exe" "${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" +} |