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
etersoft
eepm
Commits
87941f12
Commit
87941f12
authored
Apr 22, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: improve Autodesk_EAGLE
parent
6a47475d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
eagle.sh
prescription.d/eagle.sh
+2
-5
Autodesk_EAGLE.sh
repack.d/Autodesk_EAGLE.sh
+2
-7
No files found.
prescription.d/eagle.sh
View file @
87941f12
...
@@ -19,12 +19,9 @@ fi
...
@@ -19,12 +19,9 @@ fi
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
VERSION
=
9.6.2
VERSION
=
9.6.2
TGZ
=
"https://trial2.autodesk.com/NET17SWDLD/2017/EGLPRM/ESD/Autodesk_EAGLE_
${
VERSION
}
_English_Linux_64bit.tar.gz"
PKGURL
=
"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
epm
install
--repack
"
$PKGURL
"
rm
-fv
$PKG
echo
echo
echo
"
echo
"
...
...
repack.d/Autodesk_EAGLE.sh
View file @
87941f12
...
@@ -10,10 +10,8 @@ PRODUCT=eagle
...
@@ -10,10 +10,8 @@ PRODUCT=eagle
# move package to /opt
# move package to /opt
ROOTDIR
=
$(
basename
$(
find
$BUILDROOT
-mindepth
1
-maxdepth
1
-type
d
))
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|^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
mkdir
$BUILDROOT
/opt
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT
/opt/
$PRODUCT
mv
$BUILDROOT
/
$ROOTDIR
$BUILDROOT
/opt/
$PRODUCT
...
@@ -24,14 +22,11 @@ mkdir -p $BUILDROOT/usr/bin/
...
@@ -24,14 +22,11 @@ mkdir -p $BUILDROOT/usr/bin/
ln
-s
/opt/
$PRODUCT
/eagle
$BUILDROOT
/usr/bin/
$PRODUCT
ln
-s
/opt/
$PRODUCT
/eagle
$BUILDROOT
/usr/bin/
$PRODUCT
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
subst
"s|%files|%files
\n
/usr/bin/
$PRODUCT
|"
$SPEC
# fix permissions
chmod
-Rv
a+rX
$BUILDROOT
/
*
# create desktop file
# create desktop file
mkdir
-p
$BUILDROOT
/usr/share/applications/
mkdir
-p
$BUILDROOT
/usr/share/applications/
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
cat
<<
EOF
>
$BUILDROOT
/usr/share/applications/
$PRODUCT
.desktop
[Desktop Entry]
[Desktop Entry]
Version=
$VERSION
Version=
1.0
Type=Application
Type=Application
Terminal=false
Terminal=false
Name=EAGLE
Name=EAGLE
...
...
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