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
6b2a3dd6
Commit
6b2a3dd6
authored
Aug 04, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Nov 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add zed (autored by @pechenovv) (eterbug #17578)
parent
b5a354f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
0 deletions
+78
-0
zed.sh
pack.d/zed.sh
+36
-0
zed.sh
play.d/zed.sh
+29
-0
zed.sh
repack.d/zed.sh
+13
-0
No files found.
pack.d/zed.sh
0 → 100755
View file @
6b2a3dd6
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
URL
=
"
$4
"
.
$(
dirname
$0
)
/common.sh
VERSION
=
$(
echo
"
$URL
"
|
grep
-oP
'v\K[0-9]+\.[0-9]+\.[0-9]+'
)
[
-n
"
$VERSION
"
]
||
fatal
"Can't get package version"
PKGNAME
=
$PRODUCT
-
$VERSION
mkdir
-p
opt/
$PRODUCT
mkdir
-p
usr/
erc unpack
$TAR
||
fatal
mv
zed.app/
*
opt/
$PRODUCT
/
chmod
755 opt/
$PRODUCT
/libexec/zed-editor
mv
opt/
$PRODUCT
/share usr/
cat
<<
EOF
>
$PKGNAME
.tar.eepm.yaml
name:
$PRODUCT
group: Editors
license: GPL-3.0 and AGPL-3.0 and Apache-2.0
url: https://zed.dev/
summary: High-performance, multiplayer code editor
description: High-performance, multiplayer code editor
EOF
erc pack
$PKGNAME
.tar opt usr
||
fatal
return_tar
$PKGNAME
.tar
play.d/zed.sh
0 → 100755
View file @
6b2a3dd6
#!/bin/sh
PKGNAME
=
zed
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
"High-performance, multiplayer code editor from the creators of Atom and Tree-sitter"
URL
=
"https://zed.dev/"
.
$(
dirname
$0
)
/common.sh
arch
=
"
$(
epm print info
-a
)
"
case
"
$arch
"
in
x86_64
)
arch
=
x86_64
;;
aarch64
)
arch
=
aarch64
;;
*
)
fatal
"
$arch
arch is not supported"
;;
esac
if
[
"
$VERSION
"
=
"*"
]
;
then
PKGURL
=
$(
get_github_version
"https://github.com/zed-industries/zed/"
"zed-linux-
$arch
.tar.gz"
)
else
PKGURL
=
"https://github.com/zed-industries/zed/releases/download/v
$VERSION
/zed-linux-
$arch
.tar.gz"
fi
install_pack_pkgurl
repack.d/zed.sh
0 → 100755
View file @
6b2a3dd6
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
zed
PRODUCTDIR
=
/opt/
$PRODUCT
.
$(
dirname
$0
)
/common.sh
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/bin/
$PRODUCT
add_libs_requires
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