Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
f8f73d4a
Commit
f8f73d4a
authored
Mar 10, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add unigine-superposition support
parent
a26ec4fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
0 deletions
+96
-0
unigine-superposition.sh
play.d/unigine-superposition.sh
+27
-0
unigine-superposition.sh
repack.d/unigine-superposition.sh
+69
-0
No files found.
play.d/unigine-superposition.sh
0 → 100755
View file @
f8f73d4a
#!/bin/sh
PKGNAME
=
unigine-superposition
OPKGNAME
=
Unigine_Superposition
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"Unigine Superposition 2017 (Unigine Benchmark) from the official site"
.
$(
dirname
$0
)
/common.sh
convert_makeself_to_tar
()
{
offset
=
`
head
-n
402
"
$1
"
|
wc
-c
|
tr
-d
" "
`
dd
if
=
"
$1
"
ibs
=
$offset
skip
=
1
obs
=
1024
conv
=
sync
|
gzip
-cd
>
"
$(
basename
"
$1
"
.run
)
.tar"
}
PKGDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
# https://assets.unigine.com/d/Unigine_superposition-4.0.run
eget
--latest
https://benchmark.unigine.com/superposition
"
$OPKGNAME
*.run"
mv
$OPKGNAME
*
.run
$(
echo
$OPKGNAME
*
.run |
tr
"[A-Z_]"
"[a-z-]"
)
convert_makeself_to_tar
$PKGNAME
*
.run
epm
install
$PKGNAME
*
.tar
repack.d/unigine-superposition.sh
0 → 100755
View file @
f8f73d4a
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
unigine-superposition
PRODUCTDIR
=
/opt/unigine-superposition
.
$(
dirname
$0
)
/common.sh
subst
"s|^Group:.*|Group: Graphics|"
$SPEC
subst
"s|^License: unknown
$|
License: Proprietary|"
$SPEC
subst
"s|^URL:.*|URL: https://benchmark.unigine.com/superposition|"
$SPEC
subst
"s|^Summary:.*|Summary: Unigine Superposition (Unigine Benchmark)|"
$SPEC
# move subdirs
mkdir
-p
$BUILDROOT$PRODUCTDIR
/
for
i
in
bin data docs
;
do
mv
$BUILDROOT
/
$i
$BUILDROOT$PRODUCTDIR
/
$i
subst
"s|
\"
/
$i
/|
\"
$PRODUCTDIR
/
$i
/|"
$SPEC
done
epm assure patchelf
||
exit
cd
$BUILDROOT
/
$PRODUCTDIR
||
fatal
for
i
in
bin/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
done
# pack icons
for
i
in
16 24 32 48 64 128 256
;
do
mkdir
-p
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
cp
$BUILDROOT
/icons/superposition_icon_
$i
.png
$BUILDROOT
/usr/share/icons/hicolor/
${
i
}
x
${
i
}
/apps/
$PRODUCT
.png
done
subst
"s|%files|%files
\n
/usr/share/icons/hicolor/*x*/apps/
$PRODUCT
.png|"
$SPEC
remove_dir /icons
# FIXME:
install_file /Superposition
$PRODUCTDIR
/Superposition
remove_file /Superposition
remove_file /Superposition.png
remove_file /postinstall.sh
remove_file /uninstall.sh
remove_file /version
# lib.req: ERROR: .../opt/unigine-superposition/bin/qt/lib/libssl.so: library libcrypto.so.1.0.0 not found
patchelf
--remove-needed
libcrypto.so.1.0.0
$BUILDROOT$PRODUCTDIR
/bin/qt/lib/libssl.so
add_bin_exec_command superposition
$PRODUCTDIR
/bin/launcher
add_bin_link_command
$PRODUCT
/usr/bin/superposition
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Unigine Superposition 2017 Benchmark
GenericName=A GPU Stress test tool from the UNIGINE
Icon=
$PRODUCT
Exec=superposition
Terminal=false
Categories=Launcher;Benchmark;
EOF
pack_file /usr/share/applications/
$PRODUCT
.desktop
epm
install
--skip-installed
glib2 libdbus libEGL libGL libICE libqt5-test libSM libX11 libxcb libXext libXi libXinerama libXrandr libXrender zlib
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment