blob: 637c31c6a5b2944d3fbb1b2565791849f65f7055 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Conributor: fordperfect (AUR user)
# Based on unigine-valley by ajs124 and meyithi
pkgname=unigine-superposition
_pkgname=Unigine_Superposition
pkgver=1.1
pkgrel=6
pkgdesc="Interactive 3D benchmark: walk through a lab of a lone professor"
arch=('x86_64')
url="https://benchmark.unigine.com/superposition"
license=('custom:UNIGINE Engine')
depends=(
'dbus'
'fontconfig'
'freetype2'
'gcc-libs'
'glibc'
'glib2'
'hicolor-icon-theme'
'libgl'
'libice'
'libsm'
'libxcb'
'libxext'
'libxi'
'libxinerama'
'libxrandr'
'libxrender'
'libx11'
'qt5-base'
'sh'
'zlib'
)
options=('!strip')
_tarname="${_pkgname}-${pkgver}.run"
source=("${_tarname}::https://assets.unigine.com/d/${_tarname}" "Superposition.desktop")
noextract=("${_tarname}")
b2sums=('f0447b0ccd860e653c2308637c93ed29ec851ff9923251edbd37a14b021149038f1c252deb0f3c4954fd4508883b1a2994a87b34a5e18902cef6c82c6ccc6b6b'
'1d9987b5a910b86dac2e252c3187a6a07095da81d06dfafbd2c16bcacb72f602c183334fb6b3c03c7b35418f8dc6e4f2d34a44ab22831d66b67d9e5ed45bc93e')
PKGEXT='.pkg.tar.zst'
COMPRESSZST=(zstd --compress --fast --stdout --quiet --threads=0 -)
prepare() {
sh "${_tarname}" --noexec --nox11 --target "${pkgname}"
}
build() {
mkdir bin
cat >> "${srcdir}/bin/unigine-superposition" << \here
#!/bin/sh
cd /opt/unigine-superposition/bin
./launcher
here
}
package() {
cd "${srcdir}/${pkgname}"
# bulk data
install -v -dm755 "${pkgdir}/opt/${pkgname}"
cp -Rv * "${pkgdir}/opt/${pkgname}"/
# launcher
install -v -Dm755 "${srcdir}/bin/unigine-superposition" -t "${pkgdir}/usr/bin"
# fix openssl1.0 stuff
mv -v "${pkgdir}/opt/${pkgname}/bin/qt/lib/libcrypto.so"{,.1.0.0}
find "${pkgdir}/opt/${pkgname}/bin/qt" -name "*.so*" -exec chmod a+x {} \;
ln -sv /opt/unigine-superposition/bin/qt/lib/libcrypto.so.1.0.0 "${pkgdir}/opt/${pkgname}/bin/qt/lib/libcrypto.so"
# remove unneeded install scripts
rm -v "${pkgdir}/opt/${pkgname}/"*install.sh
# remove unused lib
rm -v "${pkgdir}/opt/unigine-superposition/bin/qt/lib/libQt5QuickTest.so.5"
# misc
install -v -Dm644 docs/Superposition_Benchmark_End-User_License_Agreement.pdf "${pkgdir}"/usr/share/licenses/${pkgname}/license
install -v -Dm644 docs/Superposition_Benchmark_User_Manual.pdf "${pkgdir}"/usr/share/doc/${pkgname}/User_Manual.pdf
install -v -Dm644 ../Superposition.desktop "${pkgdir}/usr/share/applications/Superposition.desktop"
# icons
for RES in 16 24 32 48 64 128 256
do
install -v -Dm644 icons/superposition_icon_${RES}.png "${pkgdir}/usr/share/icons/hicolor/${RES}x${RES}/apps/Superposition.png"
done
}
|