Commit 53a00ff9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play unigine-valley: move unpacking to pack.d

parent 2059be83
#!/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
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment