Commit 31613117 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add cstcadnavigator

parent 66710af5
#!/bin/sh
PKGNAME=cstcadnavigator
VERSION="$2"
SUPPORTEDARCHES="x86_64"
DESCRIPTION="CST CAD Navigator from the official site"
URL="https://cadsofttools.ru/products/cst-cad-navigator/download/"
. $(dirname $0)/common.sh
# Используются одни и те же бинарники в deb и rpm
# но файл rpm с версией, поэтому нам предпочтительнее для истории
if [ "$VERSION" = "*" ] ; then
PKGURL="$(eget --list --latest https://cadsofttools.ru/products/cst-cad-navigator/download/ "$PKGNAME-*x86_64.rpm" )"
else
PKGURL="https://cadsofttools.ru/download/cstcadnavigator-$VERSION-1.x86_64.rpm"
fi
install_pack_pkgurl
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCTCUR=cstCadNavigator
. $(dirname $0)/common.sh
move_to_opt
# TODO: fix bug in upstream
remove_file /usr/bin/libfmux.so
remove_file /usr/bin/libdynapdf.so
find . -type f -exec chmod 0644 {} +
add_bin_exec_command $PRODUCTCUR
add_bin_link_command $PRODUCT $PRODUCTCUR
cat <<EOF >>./usr/share/applications/$PRODUCT.desktop
MimeType=image/vnd.dwg;model/stl;image/cgm;image/svg+xml;
EOF
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