Commit 0f6a00dc authored by Vitaly Lipatov's avatar Vitaly Lipatov

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

parent 53a00ff9
#!/bin/sh
TAR="$1"
#VERSION="$2"
RETURNTARNAME="$2"
OPKGNAME="Unigine_Superposition"
. $(dirname $0)/common.sh
# args: <run file> <output tar>
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 > "$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-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"
}
cd_to_temp_dir
PKGDIR=$(mktemp -d)
trap "rm -fr $PKGDIR" EXIT
cd $PKGDIR || fatal
# https://assets.unigine.com/d/Unigine_superposition-4.0.run
epm tool 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 tool eget --latest https://benchmark.unigine.com/superposition "Unigine_Superposition*.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