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
6a5a6db3
Commit
6a5a6db3
authored
Dec 09, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add XnViewMP support
parent
1ae3456f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
xnview.sh
prescription.d/xnview.sh
+28
-0
xnview.sh
repack.d/xnview.sh
+21
-0
No files found.
prescription.d/xnview.sh
0 → 100755
View file @
6a5a6db3
#!/bin/sh
# TODO: common place
fatal
()
{
echo
"FATAL:
$*
"
>
&2
exit
1
}
PKGNAME
=
XnViewMP
if
[
"
$1
"
=
"--remove"
]
;
then
epm remove
$PKGNAME
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"XnView MP: Image management from the official site"
&&
exit
repack
=
'--repack'
arch
=
$(
$DISTRVENDOR
--distro-arch
)
case
$arch
in
x86_64|amd64
)
;;
*
)
fatal
"Unsupported arch
$arch
for
$(
$DISTRVENDOR
-d
)
"
esac
epm
install
https://download.xnview.com/XnViewMP-linux-x64.deb
repack.d/xnview.sh
0 → 100755
View file @
6a5a6db3
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
ln
-s
/lib64/libbz2.so.1
$BUILDROOT
/opt/XnView/lib/libbz2.so.1.0
subst
"s|%files|%files
\n
/opt/XnView/lib/libbz2.so.1.0|"
$SPEC
#subst '1Requires:bzlib' $SPEC
subst
'1iAutoReq:yes,noperl'
$SPEC
subst
'1iAutoProv:no'
$SPEC
# ignore embedded libs
for
i
in
libQt5 libav libcrypto.so libdbus-1.so libicu liblibraw.so libssl.so libswresample libswscale libva libvdpau
;
do
subst
"1i%filter_from_requires /^
$i
.*/d"
$SPEC
done
epm
install
--skip-installed
bzlib fontconfig libalsa libcairo libcups libdrm libfreetype /usr/bin/perl zlib libXv glib2 libatk libcairo-gobject libEGL libgdk-pixbuf libgio libGL libgst-plugins1.0 libgstreamer1.0 libgtk+2 libgtk+3 libhalf12 libiex12 libilmthread12 libpango libpulseaudio libsqlite3 libwebp7 libX11 libxcb libxcb-render-util libXcomposite libXext libXfixes libxkbcommon libxkbcommon-x11 libXrender
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