From c6325d4c2d280514b03f601f5dc56e5d0db2f056 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.48.1 --- .../update-install-command-change.patch | 6 +++ srcpkgs/lbry-desktop/template | 42 +++++++++++++++++++ 2 files changed, 48 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..211a0e2ed1a --- /dev/null +++ b/srcpkgs/lbry-desktop/patches/update-install-command-change.patch @@ -0,0 +1,6 @@ +diff -Naurp0 a/ui/modal/modalDownloading/view.jsx b/ui/modal/modalDownloading/view.jsx +--- a/ui/modal/modalDownloading/view.jsx 2020-04-01 22:56:47.000000000 +0600 ++++ b/ui/modal/modalDownloading/view.jsx 2020-04-04 13:31:55.058444427 +0600 +@@ -34 +34 @@ 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..b17da73e7e1 --- /dev/null +++ b/srcpkgs/lbry-desktop/template @@ -0,0 +1,42 @@ +# Template file for 'lbry-desktop' +pkgname=lbry-desktop +version=0.48.1 +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=cc6a93913c69477e9bd67c50f678927e824237be386348199eb885b9ab40c7cb +patch_args="-Np1" + +nopie=yes +nodebug=yes +nostrip=yes +noverifyrdeps=yes +noshlibprovides=yes +preserve=yes + +pre_build() { + # To fix node-gyp related error + # https://stackoverflow.com/a/55590251 + rm yarn.lock + + 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 +}