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
e31cf068
Commit
e31cf068
authored
Apr 19, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add lithium support
parent
cd579f1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
0 deletions
+76
-0
lithium.sh
play.d/lithium.sh
+38
-0
lithium_ecad.sh
repack.d/lithium_ecad.sh
+38
-0
No files found.
play.d/lithium.sh
0 → 100755
View file @
e31cf068
#!/bin/sh
pkgtype
=
$(
epm print info
-p
)
case
$pkgtype
in
rpm
)
PKGNAME
=
lithium_ecad
;;
*
)
PKGNAME
=
lithium-ecad
;;
esac
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"CAD of printed circuit boards"
.
$(
dirname
$0
)
/common.sh
case
$pkgtype
in
rpm
)
mask
=
"
$PKGNAME
-*.x86_64.rpm"
;;
*
)
mask
=
"
$PKGNAME_
*_amd64.deb"
;;
esac
repack
=
''
case
$(
epm print info
-s
)
in
alt
)
repack
=
"--repack"
esac
# https://www.lecad.ru/?download=&kcccount=https://www.lecad.ru/wp-content/uploads/lithium-ecad_1.7.5_amd64.deb
# https://www.lecad.ru/?download=&kcccount=https://www.lecad.ru/wp-content/uploads/lithium_ecad-1.7.5-0.x86_64.rpm
PKGURL
=
"
$(
eget
--list
--latest
https://www.lecad.ru/actual-version/
"
$mask
"
)
"
epm
$repack
install
"
$PKGURL
"
repack.d/lithium_ecad.sh
0 → 100755
View file @
e31cf068
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PREINSTALL_PACKAGES
=
"glib2 libdbus libEGL fontconfig libfreetype libGL libGLU libICE libjasper libSM libX11 libxcb libXext libXi libXrender zlib"
.
$(
dirname
$0
)
/common.sh
move_to_opt
"/opt/lithium*"
||
fatal
"can't move to
$PRODUCTDIR
"
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/launcher.sh
#subst '1iAutoReq:no' $SPEC
subst
'1iAutoProv:no'
$SPEC
cd
$BUILDROOT$PRODUCTDIR
||
fatal
if
epm assure patchelf
;
then
for
i
in
bin/
{
launcher,libraryCreator,projectCreator
}
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
||
continue
done
for
i
in
bin/
{
*
.so,
*
.so.
*
}
;
do
a
=
patchelf
--set-rpath
'$ORIGIN'
$i
||
continue
done
for
i
in
bin/plugins/
*
/
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN/../../'
$i
||
continue
done
fi
# missed with other soname
ln
-s
/usr/lib64/libjasper.so.4 bin/libjasper.so.1
pack_file
$PRODUCTDIR
/bin/libjasper.so.1
install_file lithium-ecad.desktop /usr/share/applications/
$PRODUCT
.desktop
fix_desktop_file
"/opt/lithium_ecad-.*/launcher.sh"
$PRODUCT
fix_desktop_file
"/opt/lithium_ecad-.*/lithium-ecad.png"
$PRODUCT
install_file lithium-ecad.png /usr/share/pixmaps/
$PRODUCT
.png
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