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
e311f7da
Commit
e311f7da
authored
Jul 02, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add weasis
parent
1e99bf63
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
weasis.sh
play.d/weasis.sh
+16
-0
weasis.sh
repack.d/weasis.sh
+39
-0
No files found.
play.d/weasis.sh
0 → 100755
View file @
e311f7da
#!/bin/sh
PKGNAME
=
weasis
SUPPORTEDARCHES
=
"x86_64 aarch64 armhf"
DESCRIPTION
=
"Weasis DICOM medical viewer"
VERSION
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
arch
=
"
$(
epm print info
--debian-arch
)
"
file
=
"weasis_
$VERSION
-1_
$arch
.deb"
PKGURL
=
$(
epm tool eget
--list
--latest
https://github.com/nroduit/Weasis/releases
$file
)
||
fatal
"Can't get package URL"
epm
install
"
$PKGURL
"
repack.d/weasis.sh
0 → 100755
View file @
e311f7da
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
weasis
PREINSTALL_PACKAGES
=
"coreutils glib2 libalsa libatk libcairo libcairo-gobject fontconfig libfreetype libgdk-pixbuf libgio libGL libgtk+2 libgtk+3 libnsl1 libpango libX11 libXext libXi libXrender libXtst"
.
$(
dirname
$0
)
/common.sh
add_bin_link_command weasis
$PRODUCTDIR
/bin/Weasis
add_bin_link_command Weasis
$PRODUCTDIR
/bin/Weasis
add_bin_link_command Dicomizer
$PRODUCTDIR
/bin/Dicomizer
install_file
$PRODUCTDIR
/lib/Weasis.png /usr/share/pixmaps/Weasis.png
install_file
$PRODUCTDIR
/lib/Dicomizer.png /usr/share/pixmaps/Dicomizer.png
install_file
$PRODUCTDIR
/lib/weasis-Weasis.desktop /usr/share/applications/weasis-Weasis.desktop
install_file
$PRODUCTDIR
/lib/weasis-Dicomizer.desktop /usr/share/applications/weasis-Dicomizer.desktop
# exec
fix_desktop_file
"/opt/weasis/bin/Weasis"
fix_desktop_file
"/opt/weasis/bin/Dicomizer"
# icons
fix_desktop_file
"/opt/weasis/lib/Weasis"
fix_desktop_file
"/opt/weasis/lib/Dicomizer"
cd
$BUILDROOT$PRODUCTDIR
/
||
fatal
if
epm assure patchelf
;
then
for
i
in
lib/runtime/lib/lib
*
.so
;
do
a
=
patchelf
--set-rpath
'$ORIGIN:$ORIGIN/server'
$i
done
fi
#add_findreq_skiplist "$PRODUCTDIR/runtime/lib/amd64/libav*.so"
subst
'1iAutoProv:no'
$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