From 8c3b6e3d81b28bf917f5f72d5b1c217997292fca Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 7 Aug 2019 11:49:32 +0200 Subject: [PATCH] Get vita3k-git to work Signed-off-by: Severin Kaderli --- vita3k-git/PKGBUILD | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/vita3k-git/PKGBUILD b/vita3k-git/PKGBUILD index a2d1d28..7f0cb6e 100644 --- a/vita3k-git/PKGBUILD +++ b/vita3k-git/PKGBUILD @@ -2,16 +2,18 @@ # Maintainer: Severin Kaderli _pkgname=vita3k pkgname=${_pkgname}-git -pkgver=r1188.7e59f44f +pkgver=r1195.eb9dea27 pkgrel=1 pkgdesc="Experimental PlayStation Vita emulator" arch=('x86_64') url="https://vita3k.github.io/" license=('GPL2') makedepends=( + 'clang' 'cmake' 'git' 'python2' + 'rsync' ) depends=( 'sdl2' @@ -35,7 +37,7 @@ source=( "git+https://github.com/google/googletest.git" "git+https://github.com/Vita3K/shaders-db.git" "git+https://github.com/KhronosGroup/glslang.git" - "git+https://github.com/KhronosGroup/SPIRV-Cross.git" + "git+https://github.com/vita3k/SPIRV-Cross.git" "git+https://github.com/Vita3K/ext-boost.git" "git+https://github.com/Vita3K/dlmalloc.git" "git+https://github.com/vita3k/printf.git" @@ -107,15 +109,25 @@ prepare() { build() { cd "${_pkgname}" - sh gen-linux.sh - cd build-linux - make UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" + + # Clang is needed for the build to work for now + export CC="/usr/bin/clang" + export CXX="/usr/bin/clang++" + + ./gen-linux.sh && cd build-linux + make VERBOSE=1 UNICORN_QEMU_FLAGS="--python=/usr/bin/python2" } package() { cd "${_pkgname}" - install -Dm755 build-linux/src/emulator/Vita3K "${pkgdir}/usr/bin/vita3k" - install -Dm644 src/emulator/shaders/* -t "${pkgdir}/usr/bin/shaders/" + + install -d -m 755 "${pkgdir}/opt/" + install -d -m 755 "${pkgdir}/usr/bin/" + + # 777 permissions are sadly needed for now for it to work because vita3k + # creates a log file in the same directory as the binary + rsync -rtl --perms --chmod=777 "build-linux/bin/" "${pkgdir}/opt/vita3k" + ln -s "/opt/vita3k/Vita3K" "${pkgdir}/usr/bin/vita3k" install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md" install -Dm644 "COPYING.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.txt"