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
etersoft
eepm
Commits
53a00ff9
Commit
53a00ff9
authored
Mar 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play unigine-valley: move unpacking to pack.d
parent
2059be83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
16 deletions
+26
-16
unigine-valley.sh
pack.d/unigine-valley.sh
+23
-0
unigine-valley.sh
play.d/unigine-valley.sh
+3
-16
No files found.
pack.d/unigine-valley.sh
0 → 100755
View file @
53a00ff9
#!/bin/sh
TAR
=
"
$1
"
#VERSION="$2"
RETURNTARNAME
=
"
$2
"
OPKGNAME
=
"Unigine_Valley"
.
$(
dirname
$0
)
/common.sh
# args: <run file> <output tar>
convert_makeself_to_tar
()
{
offset
=
`
head
-n
403
"
$1
"
|
wc
-c
|
tr
-d
" "
`
dd
if
=
"
$1
"
ibs
=
$offset
skip
=
1
obs
=
1024
conv
=
sync
|
gzip
-cd
>
"
$2
"
}
BASENAME
=
"
$(
basename
$(
echo
$OPKGNAME
*
.run |
tr
"[A-Z_]"
"[a-z-]"
)
.run
)
"
convert_makeself_to_tar
$TAR
$BASENAME
.tar
return_tar
$BASENAME
.tar
play.d/unigine-valley.sh
View file @
53a00ff9
#!/bin/sh
PKGNAME
=
unigine-valley
OPKGNAME
=
Unigine_Valley
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"Unigine Valley 2013 (Unigine Benchmark) from the official site"
.
$(
dirname
$0
)
/common.sh
convert_makeself_to_tar
()
{
offset
=
`
head
-n
403
"
$1
"
|
wc
-c
|
tr
-d
" "
`
dd
if
=
"
$1
"
ibs
=
$offset
skip
=
1
obs
=
1024
conv
=
sync
|
gzip
-cd
>
"
$(
basename
"
$1
"
.run
)
.tar"
}
cd_to_temp_dir
PKGDIR
=
$(
mktemp
-d
)
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
# https://assets.unigine.com/d/Unigine_valley-4.0.run
epm tool eget
--latest
https://benchmark.unigine.com/valley
"
$OPKGNAME
*.run"
mv
$OPKGNAME
*
.run
$(
echo
$OPKGNAME
*
.run |
tr
"[A-Z_]"
"[a-z-]"
)
convert_makeself_to_tar
$PKGNAME
*
.run
epm tool eget
--latest
https://benchmark.unigine.com/valley
"Unigine_Valley*.run"
epm
install
$PKGNAME
*
.tar
epm
pack
--install
$PKGNAME
*
.run
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