Commit 0fb614f0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add Obsidian support

parent 3533d170
#!/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"
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment