blob: 142b08ed5d4fe15fb39b9c5bcd0fc1160bc4eb51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Maintainer: Severin Kaderli <severin@kaderli.dev>
# Contributor: aimileus < $(echo YWltaWxpdXNAcHJvdG9ubWFpbC5jb20K | base64 -d)
pkgname="vita3k-git"
pkgver=r2260.c88796dd
pkgrel=1
pkgdesc="Experimental PlayStation Vita emulator"
arch=('x86_64')
url="https://vita3k.org/"
license=('GPL2')
makedepends=(
'boost'
'cmake'
'git'
'vulkan-headers'
'clang'
'ninja'
)
depends=(
'gtk3'
'sdl2'
)
provides=('vita3k')
conflicts=('vita3k')
source=(
"${pkgname}::git+https://github.com/vita3k/vita3k.git"
)
md5sums=(
'SKIP'
)
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${pkgname}"
git submodule update --init --recursive
}
build() {
cd "${pkgname}"
export CC="/usr/bin/clang"
export CXX="/usr/bin/clang++"
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
cmake --build build-linux
}
package() {
cd "${pkgname}"
mkdir -p "${pkgdir}/usr/bin/" "${pkgdir}/opt/vita3k/"
cp -r "build-linux/bin/"* "${pkgdir}/opt/vita3k/"
ln -s "/opt/vita3k/Vita3K" "${pkgdir}/usr/bin/vita3k"
# These folders needs 777 permissions because vita3k creates files in them
chmod 777 "${pkgdir}/opt/vita3k/"
chmod 777 "${pkgdir}/opt/vita3k/data"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}
|