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
eaad1f42
Commit
eaad1f42
authored
Mar 11, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pack.d/generic-snap.sh: impovements
parent
9e5bbb37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
generic-snap.sh
pack.d/generic-snap.sh
+8
-6
No files found.
pack.d/generic-snap.sh
View file @
eaad1f42
...
...
@@ -21,7 +21,10 @@ a= unsquashfs $TAR || fatal
# 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)="
)
eval
$(
epm tool yaml squashfs-root/meta/snap.yaml |
grep
-E
"(name|version|summary|description)="
)
#"
[
-n
"
$name
"
]
||
fatal
"Can't get name from snap.yaml"
[
-n
"
$version
"
]
||
fatal
"Can't get version from snap.yaml"
mkdir
-p
opt/
mv
squashfs-root opt/
$name
...
...
@@ -37,12 +40,11 @@ upstream_file: $alpkg
generic_repack: snap
EOF
cd
opt/
$name
||
fatal
install_file meta/gui/icon.png usr/share/pixmaps.png
install_file meta/gui/
*
.desktop usr/share/applications/
$name
.desktop
test
-d
opt/
$name
||
fatal
"Can't find opt/
$name
"
install_file
opt/
$name
/
meta/gui/icon.png usr/share/pixmaps.png
install_file
opt/
$name
/
meta/gui/
*
.desktop usr/share/applications/
$name
.desktop
sed
-i
-e
's|^Icon=.*|Icon=$name|'
usr/share/applications/
$name
.desktop
cd
-
>
/dev/null
erc pack
$PKGNAME
opt/
$name
erc pack
$PKGNAME
opt/
$name
usr/share
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