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
a8d0af18
Commit
a8d0af18
authored
Apr 17, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add kubo support
parent
c2d3611b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
0 deletions
+93
-0
kubo-beta.sh
pack.d/kubo-beta.sh
+2
-0
kubo.sh
pack.d/kubo.sh
+26
-0
kubo.sh
play.d/kubo.sh
+42
-0
kubo.sh
repack.d/kubo.sh
+23
-0
No files found.
pack.d/kubo-beta.sh
0 → 120000
View file @
a8d0af18
kubo.sh
\ No newline at end of file
pack.d/kubo.sh
0 → 100755
View file @
a8d0af18
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
CURDIR
=
"
$(
pwd
)
"
PKGDIR
=
"
$(
mktemp
-d
)
"
trap
"rm -fr
$PKGDIR
"
EXIT
cd
$PKGDIR
||
fatal
erc unpack
$TAR
&&
cd
kubo
||
fatal
mkdir
-p
usr/bin
mv
ipfs usr/bin
rm
-v
install.sh README.md
mkdir
-p
usr/share/doc/
$PRODUCT
mv
LICENSE
*
usr/share/doc/
$PRODUCT
VERSION
=
"
$(
echo
"
$TAR
"
|
sed
-e
's|.*kubo_v||'
-e
's|[-_].*||'
)
"
PKGNAME
=
$PRODUCT
-
$VERSION
erc pack
$CURDIR
/
$PKGNAME
.tar usr
||
fatal
return_tar
$PKGNAME
.tar
play.d/kubo.sh
0 → 100755
View file @
a8d0af18
#!/bin/sh
DESCRIPTION
=
"Kubo - An IPFS implementation in Go from the official site"
SUPPORTEDARCHES
=
"x86_64 x86 aarch64 armhf"
BASEPKGNAME
=
kubo
PRODUCTALT
=
"stable beta"
# kubo or kubo-beta
if
[
"
$2
"
=
"beta"
]
||
epm installed
$BASEPKGNAME
-beta
;
then
PKGNAME
=
$BASEPKGNAME
-beta
# v0.20.0-rc1_linux
# kubo_v*-rc*_linux*.tar.gz
version
=
"*-rc*_"
else
PKGNAME
=
$BASEPKGNAME
# v0.20.0_linux
# kubo_v*.[0-9]_linux*.tar.gz
version
=
"*.[0-9]_"
fi
.
$(
dirname
$0
)
/common.sh
arch
=
"
$(
epm print info
-a
)
"
case
"
$arch
"
in
x86_64
)
file
=
"linux-amd64.tar.gz"
;;
armhf
)
file
=
"linux-arm.tar.gz"
;;
x86
)
file
=
"linux-386.tar.gz"
;;
*
)
fatal
"
$arch
arch is not supported"
;;
esac
PKGURL
=
"
$(
eget
--list
--latest
https://github.com/ipfs/kubo/releases
${
BASEPKGNAME
}
_v
$version$file
)
"
epm pack
--install
$PKGNAME
"
$PKGURL
"
repack.d/kubo.sh
0 → 100755
View file @
a8d0af18
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
kubo
.
$(
dirname
$0
)
/common.sh
subst
"s|^Group:.*|Group: File tools|"
$SPEC
subst
"s|^License:.*
$|
License: MIT/Apache-2.0|"
$SPEC
subst
"s|^URL:.*|URL: https://github.com/ipfs/kubo|"
$SPEC
subst
"s|^Summary:.*|Summary: An IPFS implementation in Go|"
$SPEC
subst
'1iAutoReq:no'
$SPEC
subst
'1iAutoProv:no'
$SPEC
subst
'1iConflicts: go-ipfs'
$SPEC
subst
'1iProvides: go-ipfs'
$SPEC
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