Commit ed0303bd authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add blender

parent 616f63a6
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
#VERSION="$3"
. $(dirname $0)/common.sh
# blender-$pkgver-linux-x64
PKGNAME="$(basename $TAR | sed -e "s|-linux.*||")"
mkdir -p opt/
erc unpack $TAR
mv $PRODUCT* opt/$PRODUCT
mv_as()
{
local tdir="$(dirname "$2")"
mkdir -p ".$tdir"
mv opt/$PRODUCT/"$1" ."$2"
}
cat <<EOF >x-blender.xml
<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-blender">
<!--Created automatically by update-mime-database. DO NOT EDIT!-->
<comment>Blender scene</comment>
<glob pattern="*.blend"/>
</mime-type>
EOF
mv_as blender-symbolic.svg "/usr/share/icons/hicolor/symbolic/apps/blender-symbolic.svg"
mv_as blender.svg "/usr/share/icons/hicolor/scalable/apps/blender.svg"
mv_as blender.desktop "/usr/share/applications/blender.desktop"
mv_as x-blender.xml "/usr/share/mime/application/x-blender.xml"
erc pack $PKGNAME.tar opt usr
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
group: Graphics
license: GPLv2
url: https://blender.org
summary: A fully integrated 3D graphics creation suite
description: A fully integrated 3D graphics creation suite
EOF
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=blender
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="A fully integrated 3D graphics creation suite"
URL="https://blender.org"
. $(dirname $0)/common.sh
if [ "$VERSION" = "*" ]; then
VERSION="$(snap_get_version $PKGNAME)"
fi
PKGURL="https://download.blender.org/release/Blender${VERSION:0:3}/blender-${VERSION}-linux-x64.tar.xz"
install_pack_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
add_bin_link_command blender $PRODUCTDIR/blender-launcher
add_bin_link_command blender-softwaregl $PRODUCTDIR/blender-softwaregl
add_bin_link_command blender-system-info $PRODUCTDIR/blender-system-info.sh
add_bin_link_command blender-thumbnailer $PRODUCTDIR/blender-thumbnailer
ignore_lib_requires libamdhip64.so.6 libze_loader.so.1
add_libs_requires
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