blob: bde4ea53b5e7d5b7d705a5be74836246ad01a30e (
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
|
# Maintainer: Ian Lansdowne <idlansdowneatgmailcom>
# Contributor: Jack Rubacha <rubacha.jack03@gmail.com>
# Contributor: Edward Wawrzynek <edward@wawrzynek.com>
pkgname=xrcsimulator
pkgver=15.1d
pkgdesc="FIRST Tech Challenge, FIRST Robotics Competition, and VEX Simulator"
pkgrel=1
arch=('x86_64')
url="https://xrcsimulator.org"
license=('unknown')
depends=("zlib"
"bash")
optdepends=('openvr: For VR support')
makedepends=('gendesk')
replaces=('ftcfrcsimulator')
# Base name of files in the zip
_files_name="xRC Simulator"
source=("${pkgname}-${pkgver}.zip::https://xrcsimulator.org/?sdm_process_download=1&download_id=2435")
sha1sums=('af318875a00f399be88b650de0a188ba27904932')
prepare() {
gendesk -n -f --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name="XRC Simulator" --categories="Education;Game"
}
package() {
mkdir -p "$pkgdir/usr/share/xrcsimulator" "$pkgdir/usr/bin"
# Copy data to /usr/share, set directory permissions to 755, file permissions to 644
cp -r . "$pkgdir/usr/share/xrcsimulator/"
chmod -R u+rwX,go+rX,go-w "$pkgdir/usr/share/xrcsimulator"
chmod 755 "$pkgdir/usr/share/xrcsimulator/$_files_name.x86_64"
chmod 755 "$pkgdir/usr/share/xrcsimulator/UnityPlayer.so"
# Create soft link to binary
ln -s "/usr/share/xrcsimulator/$_files_name.x86_64" "$pkgdir/usr/bin/xrcsimulator"
# Desktop Entry
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
# Logo
install -Dm644 "${_files_name}_Data/Resources/UnityPlayer.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}
|