Commit 87941f12 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: improve Autodesk_EAGLE

parent 6a47475d
......@@ -19,12 +19,9 @@ fi
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is supported" && exit 1
VERSION=9.6.2
TGZ="https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${VERSION}_English_Linux_64bit.tar.gz"
PKG=/tmp/$PKGNAME.tar.gz
$EGET -O $PKG $TGZ || exit
PKGURL="https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_${VERSION}_English_Linux_64bit.tar.gz"
epm install --repack "$PKG" || exit
rm -fv $PKG
epm install --repack "$PKGURL"
echo
echo "
......
......@@ -10,10 +10,8 @@ PRODUCT=eagle
# move package to /opt
ROOTDIR=$(basename $(find $BUILDROOT -mindepth 1 -maxdepth 1 -type d))
VERSION="$(echo $ROOTDIR | sed -e "s|^$PRODUCT-||")"
subst "s|^Version: 1$|Version: $VERSION|" $SPEC
subst "s|^License: unknown$|License: Freeware|" $SPEC
subst "s|^Distribution:.*||" $SPEC
subst "s|^Summary:.*|Summary: EAGLE is electronic design automation (EDA) software that lets printed circuit board (PCB)|" $SPEC
mkdir $BUILDROOT/opt
mv $BUILDROOT/$ROOTDIR $BUILDROOT/opt/$PRODUCT
......@@ -24,14 +22,11 @@ mkdir -p $BUILDROOT/usr/bin/
ln -s /opt/$PRODUCT/eagle $BUILDROOT/usr/bin/$PRODUCT
subst "s|%files|%files\n/usr/bin/$PRODUCT|" $SPEC
# fix permissions
chmod -Rv a+rX $BUILDROOT/*
# create desktop file
mkdir -p $BUILDROOT/usr/share/applications/
cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
[Desktop Entry]
Version=$VERSION
Version=1.0
Type=Application
Terminal=false
Name=EAGLE
......
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