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>
|
# Maintainer: Severin Kaderli <severin@kaderli.dev>
|
||||||
_pkgname=vita3k
|
_pkgname=vita3k
|
||||||
pkgname=${_pkgname}-git
|
pkgname=${_pkgname}-git
|
||||||
pkgver=r1188.7e59f44f
|
pkgver=r1195.eb9dea27
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Experimental PlayStation Vita emulator"
|
pkgdesc="Experimental PlayStation Vita emulator"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://vita3k.github.io/"
|
url="https://vita3k.github.io/"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
makedepends=(
|
makedepends=(
|
||||||
|
'clang'
|
||||||
'cmake'
|
'cmake'
|
||||||
'git'
|
'git'
|
||||||
'python2'
|
'python2'
|
||||||
|
'rsync'
|
||||||
)
|
)
|
||||||
depends=(
|
depends=(
|
||||||
'sdl2'
|
'sdl2'
|
||||||
|
@ -35,7 +37,7 @@ source=(
|
||||||
"git+https://github.com/google/googletest.git"
|
"git+https://github.com/google/googletest.git"
|
||||||
"git+https://github.com/Vita3K/shaders-db.git"
|
"git+https://github.com/Vita3K/shaders-db.git"
|
||||||
"git+https://github.com/KhronosGroup/glslang.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/ext-boost.git"
|
||||||
"git+https://github.com/Vita3K/dlmalloc.git"
|
"git+https://github.com/Vita3K/dlmalloc.git"
|
||||||
"git+https://github.com/vita3k/printf.git"
|
"git+https://github.com/vita3k/printf.git"
|
||||||
|
@ -107,15 +109,25 @@ prepare() {
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${_pkgname}"
|
cd "${_pkgname}"
|
||||||
sh gen-linux.sh
|
|
||||||
cd build-linux
|
# Clang is needed for the build to work for now
|
||||||
make UNICORN_QEMU_FLAGS="--python=/usr/bin/python2"
|
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() {
|
package() {
|
||||||
cd "${_pkgname}"
|
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 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||||
install -Dm644 "COPYING.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.txt"
|
install -Dm644 "COPYING.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.txt"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue