Get vita3k-git to work
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
c1cb2c00f8
commit
8c3b6e3d81
1 changed files with 19 additions and 7 deletions
|
@ -2,16 +2,18 @@
|
|||
# Maintainer: Severin Kaderli <severin@kaderli.dev>
|
||||
_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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue