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
Vladislav
eepm
Commits
44b07cc2
Commit
44b07cc2
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add singularityapp (fix github issue 49)
parent
eaad1f42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
singularityapp.sh
play.d/singularityapp.sh
+15
-0
singularityapp.sh
repack.d/singularityapp.sh
+35
-0
No files found.
play.d/singularityapp.sh
0 → 100755
View file @
44b07cc2
#!/bin/sh
PKGNAME
=
singularityapp
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"SingularityApp from the official site"
URL
=
"https://snapcraft.io/singularityapp"
.
$(
dirname
$0
)
/common.sh
SNAPNAME
=
"singularityapp"
# https://api.snapcraft.io/api/v1/snaps/download/qc6MFRM433ZhI1XjVzErdHivhSOhlpf0_37.snap
PKGURL
=
"
$(
eget
-O-
-H
Snap-Device-Series:16 https://api.snapcraft.io/v2/snaps/info/
$SNAPNAME
| epm
--inscript
tool json
-b
|
grep
'\["channel-map",0,"download","url"\]'
|
head
-n1
|
sed
-e
's|.*"\(.*\)"$|\1|'
)
"
||
fatal
"Can't get URL"
epm
install
"
$PKGURL
"
This diff is collapsed.
Click to expand it.
repack.d/singularityapp.sh
0 → 100755
View file @
44b07cc2
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
add_bin_exec_command
$PRODUCT
cat
<<
EOF
>
$BUILDROOT
/usr/bin/
$PRODUCT
#!/bin/sh
LD_LIBRARY_PATH=
$PRODUCTDIR
/
$PRODUCT
/lib/x86_64-linux-gnu exec
$PRODUCTDIR
/
$PRODUCT
--disable-gpu --no-sandbox "\
$@
"
EOF
cd
.
$PRODUCTDIR
||
fatal
for
i
in
usr/lib/x86_64-linux-gnu/
*
;
do
move_file
$PRODUCTDIR
/
$i
$PRODUCTDIR
/lib/x86_64-linux-gnu/
$(
basename
$i
)
done
for
i
in
etc meta snap lib/dri usr/bin usr/lib usr/include usr/share/X11 usr/share/misc usr/share/doc usr/share/fonts
;
do
remove_dir
$PRODUCTDIR
/
$i
done
for
i
in
libEGL.so.1 libdrm.so.2 libdrm_amdgpu.so.1 libva-drm.so.2 libva-x11.so.2 libva.so.2
;
do
remove_file
$PRODUCTDIR
/lib/x86_64-linux-gnu/
$i
done
for
i
in
libdbus-1.so.3 libexpat.so.1 libkeyutils.so.1 libXss.so.1 libXss.so.1.0.0
;
do
remove_file
$PRODUCTDIR
/lib/x86_64-linux-gnu/
$i
done
cd
>
/dev/null
add_libs_requires
This diff is collapsed.
Click to expand it.
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