From fdc83aec6fe360fd4bae6646379e8ddd847c723f Mon Sep 17 00:00:00 2001 From: reback00 Date: Mon, 7 Oct 2019 14:17:56 +0600 Subject: [PATCH] New package: lbry-desktop-0.36.0 --- .../update-install-command-change.patch | 6 +++ srcpkgs/lbry-desktop/template | 39 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 srcpkgs/lbry-desktop/patches/update-install-command-change.patch create mode 100644 srcpkgs/lbry-desktop/template diff --git a/srcpkgs/lbry-desktop/patches/update-install-command-change.patch b/srcpkgs/lbry-desktop/patches/update-install-command-change.patch new file mode 100644 index 00000000000..15c71435ed1 --- /dev/null +++ b/srcpkgs/lbry-desktop/patches/update-install-command-change.patch @@ -0,0 +1,6 @@ +diff -Naurp0 a/src/ui/modal/modalDownloading/view.jsx b/src/ui/modal/modalDownloading/view.jsx +--- a/src/ui/modal/modalDownloading/view.jsx 2019-07-27 01:37:50.000000000 +0600 ++++ b/src/ui/modal/modalDownloading/view.jsx 2019-07-31 05:53:37.602429661 +0600 +@@ -28 +28 @@ class ModalDownloading extends React.Pur +-
sudo dpkg -i {downloadItem}
++
ar p {downloadItem} data.tar.xz | sudo tar xJ -C /
diff --git a/srcpkgs/lbry-desktop/template b/srcpkgs/lbry-desktop/template new file mode 100644 index 00000000000..facc858905f --- /dev/null +++ b/srcpkgs/lbry-desktop/template @@ -0,0 +1,39 @@ +# Template file for 'lbry-desktop' +pkgname=lbry-desktop +version=0.36.0 +revision=1 +archs="x86_64" +hostmakedepends="nodejs yarn-bin binutils tar xz git python libsecret" +depends="nodejs gnome-keyring GConf" +short_desc="Browser for decentralized videos and content available on LBRY protocol" +maintainer="reback00 " +license="MIT" +homepage="https://lbry.com/" +distfiles="https://github.com/lbryio/lbry-desktop/archive/v${version}.tar.gz" +checksum=8d0cefff2165772224e4b44f9bb91bb035ee6bf81f0da07997ccdf649c9005d6 +patch_args="-Np1" + +nopie=yes +nodebug=yes +nostrip=yes +noverifyrdeps=yes +noshlibprovides=yes +preserve=yes + +pre_build() { + npm install --save core-js@2 + yarn add core-js@2 +} + +do_build() { + yarn build +} + +do_install() { + ar x dist/electron/LBRY_${version}.deb data.tar.xz + tar xf data.tar.xz -C ${DESTDIR} +} + +post_install() { + vlicense LICENSE +}