From c7e00879a2c26a3e558d7d3000579656fb7d2608 Mon Sep 17 00:00:00 2001 From: mollusk Date: Fri, 1 Sep 2017 18:45:19 -0700 Subject: [PATCH] Added: get-lbry-sh --- get-lbry.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 get-lbry.sh diff --git a/get-lbry.sh b/get-lbry.sh new file mode 100644 index 0000000..694b1b1 --- /dev/null +++ b/get-lbry.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +appname="LBRY" +version="0.15.0" +arch="amd64" +url="https://github.com/lbryio/lbry-app/releases/download/v${version}/${appname}_${version}_${arch}.deb" +depends="gnome-keyring nodejs npm binutils xz" +tmpdir="/tmp" +output_file="lbry.deb" +desc="Content distribution platform using blockchain technology" + +fetch_deps(){ + sudo dnf install ${depends} +} + +fetch_url(){ + if [ ! -f ${tmpdir}/${output_file} ];then + wget -O ${tmpdir}/${output_file} ${url} + fi +} + +extract_file(){ + cd ${tmpdir} + sudo ar x ${output_file} data.tar.xz + sudo tar xvf data.tar.xz +} + +install(){ + sudo cp -rv ${tmpdir}/usr/* /usr/ + sudo cp -rv ${tmpdir}/opt/* /opt/ +} + +fetch_deps +fetch_url +extract_file +install \ No newline at end of file