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
35b27428
Commit
35b27428
authored
Mar 23, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add far2l-portable
parent
93bc8a63
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
0 deletions
+86
-0
far2l-portable.sh
pack.d/far2l-portable.sh
+45
-0
far2l-portable.sh
play.d/far2l-portable.sh
+23
-0
far2l-portable.sh
repack.d/far2l-portable.sh
+18
-0
No files found.
pack.d/far2l-portable.sh
0 → 100755
View file @
35b27428
#!/bin/sh
TAR
=
"
$1
"
#VERSION="$2"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
VERSION
=
"2.4"
[
-n
"
$VERSION
"
]
||
fatal
"Missed archive version"
CURDIR
=
$(
pwd
)
PRODUCTNAME
=
far2l-portable
PRODUCTCUR
=
far2l
PKGNAME
=
$CURDIR
/
$PRODUCTNAME
-
$VERSION
.tar
tdir
=
$(
mktemp
-d
)
trap
"rm -fr
$tdir
"
EXIT
cd
$tdir
||
fatal
# TODO: embed erc to epm
epm assure erc
||
epm ei erc
||
fatal
if
echo
"
$TAR
"
|
grep
-q
"far2l_portable.*.tar.gz"
;
then
erc
$TAR
||
fatal
RUNFILE
=
"
$(
echo
$tdir
/far2l
*
.run
)
"
elif
echo
"
$TAR
"
|
grep
-q
"far2l_portable.*.run"
;
then
RUNFILE
=
"
$TAR
"
fi
[
-s
"
$RUNFILE
"
]
||
fatal
"Missed
$RUNFILE
"
mkdir
-p
$tdir
/opt/
$PRODUCTNAME
/
sh
$RUNFILE
--noexec
--target
$tdir
/opt/
$PRODUCTNAME
||
fatal
#mkdir -p $tdir/usr/bin/
#ln -s /opt/$PRODUCTNAME/$PRODUCTCUR $tdir/usr/bin/$PRODUCTCUR
#erc pack $PKGNAME opt/$PRODUCTNAME usr/bin/ || fatal
erc pack
$PKGNAME
opt/
$PRODUCTNAME
||
fatal
return_tar
"
$PKGNAME
"
play.d/far2l-portable.sh
0 → 100755
View file @
35b27428
#!/bin/sh
PKGNAME
=
far2l-portable
SUPPORTEDARCHES
=
"x86_64 x86 aarch64"
DESCRIPTION
=
"FAR2L Portable from the official site"
.
$(
dirname
$0
)
/common.sh
arch
=
$(
epm print info
-a
)
case
$arch
in
x86_64
)
arch
=
"amd64"
;;
x86
)
arch
=
"i386"
;;
aarch64
)
arch
=
$arch
;;
*
)
fatal
"Unsupported arch
$arch
for
$(
epm print info
-d
)
"
esac
PKGURL
=
"https://github.com/unxed/far2l-deb/raw/master/portable/far2l_portable_
$arch
.tar.gz"
epm pack
--install
$PKGNAME
"
$PKGURL
"
repack.d/far2l-portable.sh
0 → 100755
View file @
35b27428
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
far2l
PRODUCTDIR
=
/opt/far2l-portable
.
$(
dirname
$0
)
/common.sh
subst
'1iAutoReq:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
subst
'1iConflicts: far2l'
$SPEC
add_bin_cdexec_command
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