Commit 4aa38bd9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add cadoodle

parent 63490a70
#!/bin/sh
PKGNAME=cadoodle
SUPPORTEDARCHES="x86_64 aarch64"
VERSION="$2"
DESCRIPTION="A drag-and-drop CAD package for beginners from the official site"
URL="https://cadoodlecad.com/"
. $(dirname $0)/common.sh
arch="$(epm print info -a)"
case "$arch" in
aarch64)
arch=arm64
;;
esac
if [ "$VERSION" = "*" ] ; then
VERSION=$(get_github_tag https://github.com/CommonWealthRobotics/CaDoodle)
fi
PKGURL="https://github.com/CommonWealthRobotics/CaDoodle/releases/download/$VERSION/CaDoodle-Linux-$arch.deb"
install_pkgurl
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCTCUR=CaDoodle
. $(dirname $0)/common.sh
install_file /opt/cadoodle/lib/CaDoodle.png /usr/share/icons/hicolor/512x512/apps/$PRODUCTCUR.png
install_file /opt/cadoodle/lib/cadoodle-CaDoodle.desktop /usr/share/applications/$PRODUCTCUR.desktop
fix_desktop_file /opt/cadoodle/bin/CaDoodle $PRODUCTCUR
fix_desktop_file /opt/cadoodle/lib/CaDoodle.png $PRODUCTCUR
add_bin_link_command $PRODUCTCUR /opt/cadoodle/bin/CaDoodle
add_bin_link_command $PRODUCT $PRODUCTCUR
# requires old ffmpeg's libs
remove_file /opt/cadoodle/lib/runtime/lib/libavplugin-*.so
remove_file /opt/cadoodle/lib/runtime/lib/libavplugin-ffmpeg-*.so
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