Commit 1d95891d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack cascadeur: rewritten

parent b6e89210
......@@ -6,8 +6,30 @@ VERSION="$3"
. $(dirname $0)/common.sh
PKGNAME=$PRODUCT-$VERSION.tar
PKGNAME=$PRODUCT-$VERSION
erc repack $TAR $PKGNAME
if echo "$TAR" | grep -q "cascadeur-linux.tgz" ; then
erc "$TAR" || fatal
else
fatal "We support only cascadeur-linux.tgz"
fi
return_tar $PKGNAME
mkdir opt
mv cascadeur* opt/$PRODUCT || fatal
# from https://www.producthunt.com/posts/cascadeur
# QmQLQK6byKKzvvHEA84h4Auxci1o9T6bCQQikZFgRM8KBx
install_file "https://ph-files.imgix.net/e07b5249-d804-4b4e-9458-fa037d30a14b.png?auto=compress&codec=mozjpeg&cs=strip&auto=format&w=72&h=72&fit=crop&bg=0fff&dpr=1" /usr/share/pixmaps/$PRODUCT.png
erc pack $PKGNAME.tar opt usr
cat <<EOF >$PKGNAME.tar.eepm.yaml
name: $PRODUCT
group: Graphics
license: Proprietary
url: https://cascadeur.com/download
summary: Cascadeur - a physics‑based 3D animation software
description: Cascadeur - a physics‑based 3D animation software.
EOF
return_tar $PKGNAME.tar
......@@ -6,18 +6,8 @@ SPEC="$2"
. $(dirname $0)/common.sh
move_to_opt /cascadeur-linux
subst "s|^License: unknown$|License: Proprietary|" $SPEC
subst "s|^Summary:.*|Summary: Cascadeur - a physics‑based 3D animation software|" $SPEC
add_bin_exec_command
# from https://www.producthunt.com/posts/cascadeur
# QmQLQK6byKKzvvHEA84h4Auxci1o9T6bCQQikZFgRM8KBx
install_file "https://ph-files.imgix.net/e07b5249-d804-4b4e-9458-fa037d30a14b.png?auto=compress&codec=mozjpeg&cs=strip&auto=format&w=72&h=72&fit=crop&bg=0fff&dpr=1" /usr/share/pixmaps/$PRODUCT.png
cat <<EOF |create_file /usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=1.0
......@@ -30,6 +20,12 @@ Categories=Games;
Terminal=false
EOF
add_requires qt5-imageformats
# they use missed Qt5 libs
remove_dir /opt/cascadeur/qml/QtQuick/Scene2D
remove_dir /opt/cascadeur/qml/QtQuick/Scene3D
remove_dir /opt/cascadeur/qml/QtQuick/Shapes
remove_dir /opt/cascadeur/qml/QtQml/RemoteObjects
remove_dir /opt/cascadeur/qml/QtQuick/LocalStorage
remove_dir /opt/cascadeur/qml/QtQuick/XmlListModel
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