Commit 03937864 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play madcad: fix pymadcad dependency (eterbug #17558)

parent 0cbda451
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
VERSION="$3"
. $(dirname $0)/common.sh
# uimadcad_0.7_x86_64.tar.gz
BASENAME=$(basename $TAR .tar.gz)
VERSION=$(echo $BASENAME | sed -e 's|^uimadcad_||' | sed -e 's|_x86_64||')
erc unpack $TAR || fatal
cd linux*
mkdir -p opt/madcad
mkdir -p usr/share
# move nessesary files to opt
mv share/madcad opt/
mv share/ usr/
mv bin/madcad opt/madcad
# fix startup script
subst 's|/share/madcad|/madcad|' opt/madcad/madcad
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar opt usr || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=uimadcad
PKGNAME=madcad
SUPPORTEDARCHES="x86_64 x86"
VERSION="$2"
DESCRIPTION='uimadcad is a GUI (Graphical User Interface) meant to ease the use of pymadcad'
......@@ -10,13 +10,12 @@ URL="https://madcad.netlify.app/uimadcad"
warn_version_is_not_supported
case "$(epm print info -a)" in
x86)
arch="i686" ;;
x86_64)
arch="amd64" ;;
esac
PKGURL=$(eget --list --latest "https://madcad.netlify.app/uimadcad" "uimadcad*$arch.tar.gz")
PKGURL=$(eget --list --latest "https://madcad.netlify.app/uimadcad" "uimadcad*$arch.deb")
install_pack_pkgurl
install_pkgurl
if [ ! $(epm print info -e) = 'ALTLinux/Sisyphus' ]; then
echo "Note: You need to install pymadcad from pip:
$ pip3 install pymadcad
"
fi
\ No newline at end of file
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
add_bin_exec_command
add_requires "python3(madcad)" "python3(glcontext)"
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