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
81eeef27
Commit
81eeef27
authored
May 13, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm pack.d: add generic-snap.sh
parent
8aebab35
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
common.sh
pack.d/common.sh
+10
-0
generic-snap.sh
pack.d/generic-snap.sh
+41
-0
No files found.
pack.d/common.sh
View file @
81eeef27
...
...
@@ -73,4 +73,14 @@ return_tar()
exit
0
}
install_file
()
{
local
src
=
"
$1
"
local
dest
=
"
$2
"
mkdir
-p
"
$(
dirname
"
$dest
"
)
"
||
return
cp
"
$src
"
"
$dest
"
||
return
}
[
-n
"
$PRODUCT
"
]
||
PRODUCT
=
"
$(
basename
$0
.sh
)
"
pack.d/generic-snap.sh
0 → 100755
View file @
81eeef27
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
VERSION
=
"
$3
"
.
$(
dirname
$0
)
/common.sh
if
!
rhas
"
$TAR
"
"
\.
snap$"
;
then
fatal
"No idea how to handle
$TAR
"
fi
alpkg
=
$(
basename
$TAR
)
# improve me
epm assure unsquashfs squashfs-tools
||
fatal
a
=
unsquashfs
$TAR
||
fatal
# name: plex-desktop
# version: 1.69.1
# summary: Plex for Linux
# description:
eval
$(
epm tool yaml squashfs-root/meta/snap.yaml |
head
|
grep
-E
"(name|version|summary|description)="
)
cat
<<
EOF
>eepm.yaml
name:
$name
version:
$version
summary:
$summary
description:
$description
upstream_file:
$alpkg
generic_repack: snap
EOF
PKGNAME
=
$name
-
$version
.tar
install_file meta/gui/icon.png /usr/share/pixmaps.png
install_file meta/gui/
*
.desktop /usr/share/applications/
$name
.desktop
sed
-i
-e
's|^Icon=.*|Icon=$name|'
usr/share/applications/
$name
.desktop
erc pack
$PKGNAME
squashfs-root eepm.yaml
return_tar
$PKGNAME
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