Fix compilation
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
9db26f13b0
commit
7ea43cdcee
2 changed files with 13 additions and 15 deletions
|
@ -1,16 +1,17 @@
|
||||||
pkgbase = vita3k-git
|
pkgbase = vita3k-git
|
||||||
pkgdesc = Experimental PlayStation Vita emulator
|
pkgdesc = Experimental PlayStation Vita emulator
|
||||||
pkgver = r1388.0dea8bf9
|
pkgver = r2257.de68b346
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://vita3k.org/
|
url = https://vita3k.org/
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL2
|
license = GPL2
|
||||||
makedepends = boost
|
makedepends = boost
|
||||||
makedepends = cmake
|
makedepends = cmake
|
||||||
makedepends = gcc8
|
|
||||||
makedepends = git
|
makedepends = git
|
||||||
makedepends = python2
|
makedepends = python2
|
||||||
makedepends = vulkan-headers
|
makedepends = vulkan-headers
|
||||||
|
makedepends = clang
|
||||||
|
makedepends = ninja
|
||||||
depends = boost-libs
|
depends = boost-libs
|
||||||
depends = gtk3
|
depends = gtk3
|
||||||
depends = sdl2
|
depends = sdl2
|
||||||
|
@ -21,4 +22,3 @@ pkgbase = vita3k-git
|
||||||
md5sums = SKIP
|
md5sums = SKIP
|
||||||
|
|
||||||
pkgname = vita3k-git
|
pkgname = vita3k-git
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# Contributor: aimileus < $(echo YWltaWxpdXNAcHJvdG9ubWFpbC5jb20K | base64 -d)
|
# Contributor: aimileus < $(echo YWltaWxpdXNAcHJvdG9ubWFpbC5jb20K | base64 -d)
|
||||||
_pkgname=vita3k
|
_pkgname=vita3k
|
||||||
pkgname="${_pkgname}-git"
|
pkgname="${_pkgname}-git"
|
||||||
pkgver=r1388.0dea8bf9
|
pkgver=r2257.de68b346
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Experimental PlayStation Vita emulator"
|
pkgdesc="Experimental PlayStation Vita emulator"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -11,10 +11,11 @@ license=('GPL2')
|
||||||
makedepends=(
|
makedepends=(
|
||||||
'boost'
|
'boost'
|
||||||
'cmake'
|
'cmake'
|
||||||
'gcc8'
|
|
||||||
'git'
|
'git'
|
||||||
'python2'
|
'python2'
|
||||||
'vulkan-headers'
|
'vulkan-headers'
|
||||||
|
'clang'
|
||||||
|
'ninja'
|
||||||
)
|
)
|
||||||
depends=(
|
depends=(
|
||||||
'boost-libs'
|
'boost-libs'
|
||||||
|
@ -38,28 +39,25 @@ pkgver() {
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "${_pkgname}"
|
cd "${_pkgname}"
|
||||||
git submodule update --recursive --init
|
git submodule update --init --recursive
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${_pkgname}"
|
cd "${_pkgname}"
|
||||||
|
|
||||||
export CC="/usr/bin/gcc-8"
|
export CC="/usr/bin/clang"
|
||||||
export CXX="/usr/bin/g++-8"
|
export CXX="/usr/bin/clang++"
|
||||||
|
|
||||||
mkdir -p build
|
cmake -S . -B build-linux -G Ninja -DCMAKE_TOOLCHAIN_FILE=./cmake/toolchain/linux-x64.cmake -DCMAKE_BUILD_TYPE=Release -DUSE_VULKAN=ON -DUSE_DISCORD_RICH_PRESENCE=OFF
|
||||||
cd build/
|
cmake --build build-linux
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DUSE_VULKAN=ON ..
|
|
||||||
make UNICORN_QEMU_FLAGS="--python=/usr/bin/python2"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${_pkgname}"
|
cd "${_pkgname}"
|
||||||
|
|
||||||
install -d -m 755 "${pkgdir}/usr/bin/"
|
mkdir -p "${pkgdir}/usr/bin/" "${pkgdir}/opt/vita3k/"
|
||||||
install -d -m 755 "${pkgdir}/opt/vita3k/"
|
|
||||||
|
|
||||||
cp -r "build/bin/"* "${pkgdir}/opt/vita3k/"
|
cp -r "build-linux/bin/"* "${pkgdir}/opt/vita3k/"
|
||||||
ln -s "/opt/vita3k/Vita3K" "${pkgdir}/usr/bin/vita3k"
|
ln -s "/opt/vita3k/Vita3K" "${pkgdir}/usr/bin/vita3k"
|
||||||
|
|
||||||
# These folders needs 777 permissions because vita3k creates files in them
|
# These folders needs 777 permissions because vita3k creates files in them
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue