-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-benchmarks/unigine-superposition: new package, add 1.1
Signed-off-by: Vitaly Zdanevich <[email protected]> Closes: gentoo/guru#213 Reviewed-by: Viorel Munteanu <[email protected]> Signed-off-by: Lucio Sauer <[email protected]>
- Loading branch information
1 parent
f9fe749
commit 507892f
Showing
4 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST Unigine_Superposition-1.1.run 1642151160 BLAKE2B f0447b0ccd860e653c2308637c93ed29ec851ff9923251edbd37a14b021149038f1c252deb0f3c4954fd4508883b1a2994a87b34a5e18902cef6c82c6ccc6b6b SHA512 00a680b789ec69f6453e31fbd233bc018cc9f3ca8595ea9367dda49bbdde453643863d90b84b068f444fc3ec023bdd4f35326cffb1fbf8653ced29c587524dd6 |
10 changes: 10 additions & 0 deletions
10
app-benchmarks/unigine-superposition/files/Superposition.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Version=1.1 | ||
Type=Application | ||
Exec=/opt/unigine-superposition/Superposition | ||
Path=/opt/unigine-superposition/bin | ||
Name=Superposition Benchmark | ||
GenericName=A GPU Stress test tool from the UNIGINE | ||
Icon=Superposition | ||
Terminal=false | ||
Categories=Game;X-Launcher;X-Benchmark; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<maintainer type="person"> | ||
<email>[email protected]</email> | ||
<name>Vitaly Zdanevich</name> | ||
</maintainer> | ||
</pkgmetadata> |
117 changes: 117 additions & 0 deletions
117
app-benchmarks/unigine-superposition/unigine-superposition-1.1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit desktop wrapper xdg | ||
|
||
DESCRIPTION="Game like benchmark (CPU, GPU), for ~5 minutes" | ||
HOMEPAGE="https://benchmark.unigine.com/superposition" | ||
|
||
SRC_URI="https://assets.unigine.com/d/Unigine_Superposition-${PV}.run" | ||
|
||
LICENSE="Unigine-Superposition-Benchmark-EULA" | ||
SLOT="0" | ||
KEYWORDS="~amd64" | ||
|
||
RESTRICT="bindist mirror strip" | ||
|
||
BDEPEND=" | ||
app-admin/chrpath | ||
" | ||
|
||
RDEPEND=" | ||
dev-libs/glib:2 | ||
media-libs/fontconfig | ||
media-libs/freetype | ||
media-libs/libglvnd | ||
sys-apps/dbus | ||
sys-libs/zlib | ||
x11-libs/libICE | ||
x11-libs/libSM | ||
x11-libs/libX11 | ||
x11-libs/libXext | ||
x11-libs/libXi | ||
x11-libs/libXinerama | ||
x11-libs/libXrandr | ||
x11-libs/libXrender | ||
x11-libs/libxcb:= | ||
" | ||
|
||
QA_PREBUILT=" | ||
opt/unigine-superposition/bin/qt/lib/libQt5QuickControls2.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libicudata.so.56 | ||
opt/unigine-superposition/bin/qt/lib/libcrypto.so | ||
opt/unigine-superposition/bin/qt/lib/libQt5Widgets.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libicuuc.so.56 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Core.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Xml.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Concurrent.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5QuickTemplates2.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5WebSockets.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5XcbQpa.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5QuickTest.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libssl.so | ||
opt/unigine-superposition/bin/qt/lib/libQt5QuickWidgets.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5QuickParticles.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Qml.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Quick.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libicui18n.so.56 | ||
opt/unigine-superposition/bin/qt/lib/libQt5DBus.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Network.so.5 | ||
opt/unigine-superposition/bin/qt/lib/libQt5Gui.so.5 | ||
opt/unigine-superposition/bin/qt/plugins/platforms/libqxcb.so | ||
opt/unigine-superposition/bin/qt/plugins/xcbglintegrations/libqxcb-glx-integration.so | ||
opt/unigine-superposition/bin/qt/plugins/xcbglintegrations/libqxcb-egl-integration.so | ||
opt/unigine-superposition/bin/qt/qml/QtGraphicalEffects/libqtgraphicaleffectsplugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtGraphicalEffects/private/libqtgraphicaleffectsprivate.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Window.2/libwindowplugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Layouts/libqquicklayoutsplugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Controls/libqtquickcontrolsplugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Dialogs/libdialogplugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick/Dialogs/Private/libdialogsprivateplugin.so | ||
opt/unigine-superposition/bin/qt/qml/QtQuick.2/libqtquick2plugin.so | ||
opt/unigine-superposition/bin/qt/qml/Qt/labs/settings/libqmlsettingsplugin.so | ||
opt/unigine-superposition/bin/qt/qml/Qt/labs/folderlistmodel/libqmlfolderlistmodelplugin.so | ||
opt/unigine-superposition/bin/superposition_cli | ||
opt/unigine-superposition/bin/libGPUMonitor_x64.so | ||
opt/unigine-superposition/bin/libUnigine_x64.so | ||
opt/unigine-superposition/bin/superposition | ||
opt/unigine-superposition/bin/libopenvr_api.so | ||
opt/unigine-superposition/bin/libopenal.so | ||
opt/unigine-superposition/bin/libAppVive_x64.so | ||
opt/unigine-superposition/bin/launcher | ||
opt/unigine-superposition/Superposition | ||
" | ||
QA_FLAGS_IGNORED="${QA_PREBUILT}" | ||
|
||
src_unpack() { | ||
sh "${DISTDIR}"/Unigine_Superposition-1.1.run --tar xfv --one-top-level=${P} || die | ||
} | ||
|
||
src_install() { | ||
local res | ||
for res in 16 24 32 48 64 128 256 | ||
do | ||
newicon -s ${res} icons/superposition_icon_${res}.png Superposition.png | ||
done | ||
|
||
rm -rf icons {post,un}install.sh version bin/qt/lib/libQt5QuickTest.so.5 || die | ||
# so.5 looks like unused lib https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=unigine-superposition#n76 | ||
|
||
chrpath -r '$ORIGIN/qt/lib' bin/launcher || die | ||
# Against "scanelf: rpath_security_checks(): Security problem with relative DT_RPATH" | ||
|
||
insinto /opt/${PN} | ||
doins -r . | ||
|
||
fowners -R root:root / | ||
fperms +x /opt/${PN}/Superposition | ||
fperms +x /opt/${PN}/bin/launcher | ||
|
||
domenu "${FILESDIR}/Superposition.desktop" | ||
|
||
make_wrapper unigine-superposition /opt/${PN}/Superposition | ||
} |