blob: 1545e6c70ce83b4d069f54258663f5d13d53faa6 (
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
|
# Maintainer: Maik Broemme <mbroemme@libmpq.org>
pkgname="parsec-sdk-bin"
pkgdesc="Parsec SDK to build interactive and low-latency peer-to-peer connections for game streaming"
pkgver="6.0"
pkgrel="1"
arch=("x86_64")
url="https://parsec.app/"
license=("custom")
options=("!strip")
optdepends=(
"sdl2: for compiling the example client"
)
source=(
"https://github.com/parsec-cloud/parsec-sdk/archive/${pkgver}.tar.gz"
)
sha256sums=(
"2cfb06ab4c38b2dd02baa4b5b335bbf182268891606fb61fc97105c95ee67ea0"
)
package() {
cd "${srcdir}/parsec-sdk-${pkgver}"
# install sdk.
install -D -m 0755 "sdk/linux/libparsec.so" "${pkgdir}/usr/lib/parsec/sdk/linux/libparsec.so"
install -D -m 0755 "sdk/macos/libparsec.dylib" "${pkgdir}/usr/lib/parsec/sdk/macos/libparsec.dylib"
install -D -m 0755 "sdk/windows/parsec.dll" "${pkgdir}/usr/lib/parsec/sdk/windows/parsec.dll"
install -D -m 0755 "sdk/windows/parsec.lib" "${pkgdir}/usr/lib/parsec/sdk/windows/parsec.lib"
install -D -m 0755 "sdk/windows/parsec32.dll" "${pkgdir}/usr/lib/parsec/sdk/windows/parsec32.dll"
install -D -m 0755 "sdk/windows/parsec32.lib" "${pkgdir}/usr/lib/parsec/sdk/windows/parsec32.lib"
install -D -m 0644 "sdk/parsec-dso.h" "${pkgdir}/usr/include/parsec/sdk/parsec-dso.h"
install -D -m 0644 "sdk/parsec.h" "${pkgdir}/usr/include/parsec/sdk/parsec.h"
install -D -m 0644 "examples/client/GNUmakefile" "${pkgdir}/usr/share/doc/parsec/examples/client/GNUmakefile"
install -D -m 0644 "examples/client/README.md" "${pkgdir}/usr/share/doc/parsec/examples/client/README.md"
install -D -m 0644 "examples/client/main.c" "${pkgdir}/usr/share/doc/parsec/examples/client/main.c"
install -D -m 0644 "examples/client/makefile" "${pkgdir}/usr/share/doc/parsec/examples/client/makefile"
install -D -m 0644 "examples/host/README.md" "${pkgdir}/usr/share/doc/parsec/examples/host/README.md"
install -D -m 0644 "examples/host/main.c" "${pkgdir}/usr/share/doc/parsec/examples/host/main.c"
install -D -m 0644 "examples/host/makefile" "${pkgdir}/usr/share/doc/parsec/examples/host/makefile"
install -D -m 0644 "api/enterprise/README.md" "${pkgdir}/usr/share/doc/parsec/api/enterprise/README.md"
install -D -m 0644 "api/personal/README.md" "${pkgdir}/usr/share/doc/parsec/api/personal/README.md"
install -D -m 0644 "api/personal/hosts.py" "${pkgdir}/usr/share/doc/parsec/api/personal/hosts.py"
install -D -m 0644 "api/personal/login.py" "${pkgdir}/usr/share/doc/parsec/api/personal/login.py"
install -D -m 0644 "api/third-party/README.md" "${pkgdir}/usr/share/doc/parsec/api/third-party/README.md"
install -D -m 0644 "api/third-party/auth-codes.py" "${pkgdir}/usr/share/doc/parsec/api/third-party/auth-codes.py"
install -D -m 0644 "api/third-party/auth-sessions.py" "${pkgdir}/usr/share/doc/parsec/api/third-party/auth-sessions.py"
install -D -m 0644 "LICENSE.md" "${pkgdir}/usr/share/doc/parsec/LICENSE.md"
# link shared libraries.
ln -s "parsec/sdk/linux/libparsec.so" "${pkgdir}/usr/lib/libparsec.so"
ln -s "parsec/sdk/linux/libparsec.so" "${pkgdir}/usr/lib/libparsec.so.${pkgver}"
# link include files.
ln -s "sdk/parsec-dso.h" "${pkgdir}/usr/include/parsec/parsec-dso.h"
ln -s "sdk/parsec.h" "${pkgdir}/usr/include/parsec/parsec.h"
}
|