[lilac] updated to 1273-2

This commit is contained in:
lilac 2021-01-01 12:37:03 +08:00
parent 6a30832cd7
commit 7dd29934f0
2 changed files with 41 additions and 70 deletions

View File

@ -1,14 +1,14 @@
pkgbase = yuzu-early-access
pkgdesc = An experimental open-source Nintendo Switch emulator/debugger
pkgver = 1267
pkgrel = 1
url = https://yuzu-emu.org
pkgdesc = An experimental open-source Nintendo Switch emulator/debugger (mainline GIT version)
pkgver = 1273
pkgrel = 2
url = https://yuzu-emu.org/
arch = i686
arch = x86_64
license = GPL2
makedepends = p7zip
makedepends = cmake
makedepends = git
makedepends = glslang
makedepends = cmake
makedepends = ninja
makedepends = python2
makedepends = graphviz
@ -18,15 +18,14 @@ pkgbase = yuzu-early-access
makedepends = catch2
makedepends = nlohmann-json
makedepends = rapidjson
makedepends = qt5-tools
makedepends = desktop-file-utils
makedepends = wget
depends = boost-libs
depends = shared-mime-info
depends = hicolor-icon-theme
depends = sdl2
depends = qt5-base
depends = qt5-multimedia
depends = qt5-tools
depends = qt5-webengine
depends = libxkbcommon-x11
depends = ffmpeg
@ -40,14 +39,15 @@ pkgbase = yuzu-early-access
depends = zstd
optdepends = qt5-wayland: for Wayland support
provides = yuzu
provides = yuzu-canary-git
provides = yuzu-cmd
provides = yuzu-mainline
provides = yuzu-canary
conflicts = yuzu-canary-git
conflicts = yuzu-master-git
conflicts = yuzu-mainline-git
conflicts = yuzu-git
conflicts = yuzu-early-access-kiku233-git
conflicts = yuzu-ea-bin
source = yuzu.7z::https://cdn-31.anonfiles.com/R5A6f345p0/c78ca2e7-1609336387/YuzuEA-1266.7z
md5sums = 7afd4742a0baa898afb0f733f39c83bd
replaces = yuzu-canary-git
source = yuzu::https://github.com/pineappleEA/pineapple-src/archive/EA-1273.tar.gz
md5sums = 8e680d2efe6334603e07dd7546b90207
pkgname = yuzu-early-access

View File

@ -1,59 +1,35 @@
# Maintainer: Heavysink <winstonwu91 at gmail>
# Maintainer: Brendan Szymanski <bscubed@pm.me>
_pkgname=yuzu
_link="$(curl -s $(curl -s https://raw.githubusercontent.com/pineappleEA/pineappleEA.github.io/master/index.html | head -n -2 | grep -o 'https://.*.7z' | head -n 1) | grep -o 'https://cdn-.*.7z' | head -n 1)"
pkgname=$_pkgname-early-access
pkgver=1267
pkgrel=1
pkgdesc="An experimental open-source Nintendo Switch emulator/debugger"
pkgver=1273
pkgrel=2
pkgdesc="An experimental open-source Nintendo Switch emulator/debugger (mainline GIT version)"
arch=('i686' 'x86_64')
url="https://yuzu-emu.org"
url="https://yuzu-emu.org/"
license=('GPL2')
depends=('boost-libs' 'shared-mime-info' 'hicolor-icon-theme' 'sdl2' 'qt5-base' 'qt5-multimedia' 'qt5-tools' 'qt5-webengine' 'libxkbcommon-x11' 'ffmpeg' 'fmt' 'libzip' 'opus' 'libfdk-aac' 'lz4' 'mbedtls' 'openssl' 'zstd')
makedepends=('p7zip' 'cmake' 'glslang' 'ninja' 'python2' 'graphviz' 'doxygen' 'clang' 'boost' 'catch2' 'nlohmann-json' 'rapidjson' 'desktop-file-utils' 'wget')
depends=('boost-libs' 'shared-mime-info' 'hicolor-icon-theme' 'sdl2' 'qt5-base' 'qt5-multimedia' 'qt5-webengine' 'libxkbcommon-x11' 'ffmpeg' 'fmt' 'libzip' 'opus' 'libfdk-aac' 'lz4' 'mbedtls' 'openssl' 'zstd')
makedepends=('git' 'glslang' 'cmake' 'ninja' 'python2' 'graphviz' 'doxygen' 'clang' 'boost' 'catch2' 'nlohmann-json' 'rapidjson' 'qt5-tools' 'desktop-file-utils')
optdepends=('qt5-wayland: for Wayland support')
provides=('yuzu')
conflicts=('yuzu-canary-git' 'yuzu-master-git' 'yuzu-mainline-git' 'yuzu-git' 'yuzu-early-access-kiku233-git' 'yuzu-ea-bin')
source=("$_pkgname.7z::$_link")
md5sums=('7afd4742a0baa898afb0f733f39c83bd')
pkgver () {
curl -s https://raw.githubusercontent.com/pineappleEA/pineappleEA.github.io/master/index.html | grep -Po 'Yuzu EA \d+' | sed 's/Yuzu EA //' | head -n 1
}
provides=('yuzu' 'yuzu-canary-git' 'yuzu-cmd' 'yuzu-mainline' 'yuzu-canary')
conflicts=('yuzu-canary-git' 'yuzu-master-git')
replaces=('yuzu-canary-git')
source=("$_pkgname::https://github.com/pineappleEA/pineapple-src/archive/EA-${pkgver}.tar.gz")
md5sums=('8e680d2efe6334603e07dd7546b90207')
prepare() {
cd "$srcdir"
mv yuzu-windows-msvc-early-access $_pkgname
cd $_pkgname
tar -xf yuzu-windows-msvc-source-*
rm yuzu-windows-msvc-source-*.tar.xz
cd $(ls -d yuzu-windows-msvc-source-*)
find -path ./dist -prune -o -type f -exec sed -i 's/\r$//' {} ';'
find . -exec touch {} +
wget -q https://raw.githubusercontent.com/PineappleEA/Pineapple-Linux/master/inject-git-info.patch
wget -q https://raw.githubusercontent.com/PineappleEA/Pineapple-Linux/master/warning-to-warning.patch
wget -q https://raw.githubusercontent.com/PineappleEA/Pineapple-Linux/master/disable-shadow-error.patch
patch -p1 < inject-git-info.patch
patch -p1 < warning-to-warning.patch
patch -p1 < disable-shadow-error.patch
sed -i 's/1.73/1.72/g' CMakeLists.txt
cd "$srcdir/pineapple-src-EA-${pkgver}"
for i in patches/*.patch; do
patch -p1 < $i
done
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror$/-W/g' {} +
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*)$/ )/g' {} +
find . -name "CMakeLists.txt" -exec sed -i 's/^.*-Werror=.*$/ /g' {} +
find . -name "CMakeLists.txt" -exec sed -i 's/-Werror/-W/g' {} +
}
build() {
# Trick the compiler into thinking we're building from a continuous
# integration tool so the build number is correctly shown in the title
cd "$srcdir/$_pkgname"
srcd="$(ls -d yuzu-windows-msvc-source-*)"
cd $srcd
msvc=$(echo "${PWD##*/}"|sed 's/.*-//')
mkdir -p build && cd build
pwd
cd "$srcdir/pineapple-src-EA-${pkgver}"
mkdir -p build && cd build
cmake .. -GNinja \
-DTITLE_BAR_FORMAT_IDLE="yuzu Early Access $pkgver" \
-DTITLE_BAR_FORMAT_RUNNING="yuzu Early Access $pkgver | {3}" \
@ -66,21 +42,16 @@ build() {
-DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
-DYUZU_USE_QT_WEB_ENGINE=ON \
-DUSE_DISCORD_PRESENCE=ON
ninja
}
check() {
cd "$srcdir/$_pkgname"
cd $(ls -d yuzu-windows-msvc-source-*)
cd build
ninja test
cd "$srcdir/pineapple-src-EA-${pkgver}/build"
ninja test
}
package() {
cd "$srcdir/$_pkgname"
cd $(ls -d yuzu-windows-msvc-source-*)
cd build
DESTDIR="$pkgdir" ninja install
cd "$srcdir/pineapple-src-EA-${pkgver}/build"
DESTDIR="$pkgdir" ninja install
}