Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
3b153efe
Commit
3b153efe
authored
Apr 21, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add Autodesk EAGLE install
parent
8296ca6c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
0 deletions
+85
-0
eagle.sh
prescription.d/eagle.sh
+33
-0
Autodesk_EAGLE.sh
repack.d/Autodesk_EAGLE.sh
+52
-0
No files found.
prescription.d/eagle.sh
0 → 100755
View file @
3b153efe
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
Autodesk_EAGLE
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install EAGLE (EDA software) from the official site"
&&
exit
[
"
$(
$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
epm
install
--repack
"
$PKG
"
||
exit
rm
-fv
$PKG
echo
echo
"
Run via
$
eagle
"
repack.d/Autodesk_EAGLE.sh
0 → 100755
View file @
3b153efe
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
eagle
#subst '1iAutoProv:no' $SPEC
# 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
mkdir
$BUILDROOT
/opt
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT
/opt/
$PRODUCT
subst
"s|
\"
/
$ROOTDIR
/|
\"
/opt/
$PRODUCT
/|"
$SPEC
# add binary in standart path
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
Type=Application
Terminal=false
Name=EAGLE
Comment=PCB design: schematic capture, board layout, and autorouter
# paths need to be absolute, no ~ allowed within this file
Exec=/usr/bin/eagle
Icon=/opt/eagle/bin/eagle-logo.png
# meta data
Categories=Engineering;Electronics;
Keywords=eagle;pcb;schematics;electronics;
MimeType=application/x-eagle-schematic;application/x-eagle-board;application/x-eagle-project;
# used to group all windows under the same launcher icon
StartupWMClass=eagle
EOF
subst
"s|%files|%files
\n
/usr/share/applications/
$PRODUCT
.desktop|"
$SPEC
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment