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
0fb614f0
Commit
0fb614f0
authored
Mar 29, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add Obsidian support
parent
3533d170
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
obsidian.sh
play.d/obsidian.sh
+16
-0
obsidian.sh
repack.d/obsidian.sh
+33
-0
No files found.
play.d/obsidian.sh
0 → 100755
View file @
0fb614f0
#!/bin/sh
PKGNAME
=
obsidian
DESCRIPTION
=
'Obsidian from the official site'
.
$(
dirname
$0
)
/common.sh
[
"
$(
$DISTRVENDOR
-a
)
"
!=
"x86_64"
]
&&
echo
"Only x86_64 is supported"
&&
exit
1
arch
=
amd64
pkgtype
=
deb
PKG
=
$(
$EGET
--list
--latest
https://github.com/obsidianmd/obsidian-releases/releases/
"
$PKGNAME
*
$arch
.
$pkgtype
"
)
||
fatal
"Can't get package URL"
[
-n
"
$PKG
"
]
||
fatal
"Can't get package URL"
epm
install
"
$PKG
"
repack.d/obsidian.sh
0 → 100755
View file @
0fb614f0
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
PRODUCT
=
obsidian
PRODUCTCUR
=
obsidian
PRODUCTDIR
=
/opt/Obsidian
.
$(
dirname
$0
)
/common-chromium-browser.sh
cleanup
#add_bin_commands
if
[
!
-f
"
$BUILDROOT
/usr/bin/
$PRODUCT
"
]
;
then
mkdir
-p
$BUILDROOT
/usr/bin
subst
"s|%files|%files
\n
%_bindir/
$PRODUCT
|"
$SPEC
# fix lib.req: ERROR: /tmp/.private/lav/tmp.lPI2zBE3UA/obsidian_0.13.31_amd64.deb.tmpdir/obsidian-0.13.31/usr/bin/obsidian: library libffmpeg.so not found
echo
"exec
$PRODUCTDIR
/
$PRODUCT
"
>
$BUILDROOT
/usr/bin/
$PRODUCT
chmod
a+x
$BUILDROOT
/usr/bin/
$PRODUCT
fi
install_deps
fix_chrome_sandbox
#epm assure patchelf || exit
#for i in $BUILDROOT$PRODUCTDIR/$PRODUCT ; do
# a= patchelf --set-rpath "$PRODUCTDIR" $i
#done
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