summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormetscoin2018-08-23 10:40:03 -0400
committermetscoin2018-08-23 10:40:03 -0400
commit29e928596d22ae8d1a4dfad4b70be0d72b40bd8d (patch)
treeb5db8a2ee59382ff6e4e0bae5fdaecfa69c557ca
downloadaur-29e928596d22ae8d1a4dfad4b70be0d72b40bd8d.tar.gz
Init lux-qt
-rw-r--r--.SRCINFO31
-rw-r--r--.gitignore13
-rw-r--r--PKGBUILD40
-rw-r--r--lux-qt.desktop10
-rw-r--r--lux-qt.install11
-rw-r--r--lux.patch86
6 files changed, 191 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e5b2acc99e9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,31 @@
+pkgbase = lux-qt
+ pkgdesc = Cryptocurrency wallet(QT)
+ pkgver = 5.2.2
+ pkgrel = 1
+ url = https://luxcore.io/
+ install = lux-qt.install
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = boost
+ makedepends = qt5-tools
+ makedepends = libevent
+ makedepends = python
+ depends = boost-libs
+ depends = qt5-base
+ depends = qrencode
+ depends = miniupnpc
+ depends = db4.8
+ depends = zeromq
+ depends = protobuf
+ depends = libevent
+ conflicts = luxcoin
+ source = lux-qt::git+https://github.com/LUX-Core/lux.git#tag=v5.2.2
+ source = lux-qt.desktop
+ source = lux.patch
+ sha256sums = SKIP
+ sha256sums = 546ae8129ffd9a1e0b639441e38e97088439a33e204023963dfd771fe9cb756a
+ sha256sums = 2bbe1e79623fdf5d352f736e8844233c0b5ff2975b6e00bb27933253a2dde4b1
+
+pkgname = lux-qt
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..1e2b0c0734b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/ \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..841b5be98f4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: metscoin <mets_coin@outlook.com>
+
+pkgname=lux-qt
+pkgver=5.2.2
+pkgrel=1
+arch=('i686' 'x86_64')
+url="https://luxcore.io/"
+license=('MIT')
+pkgdesc="Cryptocurrency wallet(QT)"
+depends=(boost-libs qt5-base qrencode miniupnpc db4.8 zeromq protobuf libevent)
+makedepends=(boost qt5-tools libevent python)
+conflicts=(luxcoin)
+install=lux-qt.install
+source=("${pkgname%-git}::git+https://github.com/LUX-Core/lux.git#tag=v${pkgver}"
+ "$pkgname.desktop"
+ "lux.patch")
+sha256sums=('SKIP'
+ '546ae8129ffd9a1e0b639441e38e97088439a33e204023963dfd771fe9cb756a'
+ '2bbe1e79623fdf5d352f736e8844233c0b5ff2975b6e00bb27933253a2dde4b1')
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ patch -p1 -i "../lux.patch"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ find . -type f -iname "*.sh" -exec chmod +x {} \;
+ ./autogen.sh
+ ./configure --with-gui=qt5 --without-miniupnpc --disable-tests --with-incompatible-bdb
+ make
+}
+
+package() {
+ install -Dm644 lux-qt.desktop "$pkgdir"/usr/share/applications/lux.desktop
+ cd "$srcdir/$pkgname"
+ install -Dm755 src/qt/lux-qt "$pkgdir"/usr/bin/lux-qt
+ install -Dm644 share/pixmaps/bitcoin128.png "$pkgdir"/usr/share/pixmaps/lux128.png
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/lux-qt.desktop b/lux-qt.desktop
new file mode 100644
index 00000000000..1ebeba7e364
--- /dev/null
+++ b/lux-qt.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Lux
+Comment=Lux P2P Cryptocurrency
+Exec=/usr/bin/lux-qt
+Terminal=false
+Type=Application
+Icon=/usr/share/pixmaps/lux128.png
+MimeType=x-scheme-handler/lux;
+Categories=Office;
diff --git a/lux-qt.install b/lux-qt.install
new file mode 100644
index 00000000000..f98ba733893
--- /dev/null
+++ b/lux-qt.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
diff --git a/lux.patch b/lux.patch
new file mode 100644
index 00000000000..24a8c8b62a1
--- /dev/null
+++ b/lux.patch
@@ -0,0 +1,86 @@
+diff '--color=auto' -Nura lux-qt.orig/src/lux-cli.cpp lux-qt.new/src/lux-cli.cpp
+--- lux-qt.orig/src/lux-cli.cpp 2018-08-23 06:34:18.017983000 -0400
++++ lux-qt.new/src/lux-cli.cpp 2018-08-23 09:42:30.541463783 -0400
+@@ -104,7 +104,7 @@
+ // Connect to localhost
+ bool fUseSSL = GetBoolArg("-rpcssl", false);
+ asio::io_service io_service;
+- ssl::context context(io_service, ssl::context::sslv23);
++ ssl::context context(ssl::context::sslv23);
+ context.set_options(ssl::context::no_sslv2 | ssl::context::no_sslv3);
+ asio::ssl::stream<asio::ip::tcp::socket> sslStream(io_service, context);
+ SSLIOStreamDevice<asio::ip::tcp> d(sslStream, fUseSSL);
+diff '--color=auto' -Nura lux-qt.orig/src/qt/hexaddressconverter.cpp lux-qt.new/src/qt/hexaddressconverter.cpp
+--- lux-qt.orig/src/qt/hexaddressconverter.cpp 2018-08-23 06:34:18.227986000 -0400
++++ lux-qt.new/src/qt/hexaddressconverter.cpp 2018-08-23 09:41:31.343810261 -0400
+@@ -3,6 +3,7 @@
+ #include "base58.h"
+ #include "uint256.h"
+ #include "utilstrencodings.h"
++#include "qregularexpression.h"
+
+ #include <iostream>
+ #include <QClipboard>
+diff '--color=auto' -Nura lux-qt.orig/src/rpcserver.cpp lux-qt.new/src/rpcserver.cpp
+--- lux-qt.orig/src/rpcserver.cpp 2018-08-23 06:34:18.581324000 -0400
++++ lux-qt.new/src/rpcserver.cpp 2018-08-23 09:39:39.251936936 -0400
+@@ -519,8 +519,8 @@
+ void ServiceConnection(AcceptedConnection* conn);
+
+ //! Forward declaration required for RPCListen
+-template <typename Protocol, typename SocketAcceptorService>
+-static void RPCAcceptHandler(boost::shared_ptr<basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
++template <typename Protocol>
++static void RPCAcceptHandler(boost::shared_ptr<basic_socket_acceptor<Protocol> > acceptor,
+ ssl::context& context,
+ bool fUseSSL,
+ boost::shared_ptr<AcceptedConnection> conn,
+@@ -529,8 +529,8 @@
+ /**
+ * Sets up I/O resources to accept and handle a new connection.
+ */
+-template <typename Protocol, typename SocketAcceptorService>
+-static void RPCListen(boost::shared_ptr<basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
++template <typename Protocol>
++static void RPCListen(boost::shared_ptr<basic_socket_acceptor<Protocol> > acceptor,
+ ssl::context& context,
+ const bool fUseSSL)
+ {
+@@ -540,7 +540,7 @@
+ acceptor->async_accept(
+ conn->sslStream.lowest_layer(),
+ conn->peer,
+- boost::bind(&RPCAcceptHandler<Protocol, SocketAcceptorService>,
++ boost::bind(&RPCAcceptHandler<Protocol>,
+ acceptor,
+ boost::ref(context),
+ fUseSSL,
+@@ -552,8 +552,8 @@
+ /**
+ * Accept and handle incoming connection.
+ */
+-template <typename Protocol, typename SocketAcceptorService>
+-static void RPCAcceptHandler(boost::shared_ptr<basic_socket_acceptor<Protocol, SocketAcceptorService> > acceptor,
++template <typename Protocol>
++static void RPCAcceptHandler(boost::shared_ptr<basic_socket_acceptor<Protocol> > acceptor,
+ ssl::context& context,
+ const bool fUseSSL,
+ boost::shared_ptr<AcceptedConnection> conn,
+@@ -629,7 +629,7 @@
+
+ assert(rpc_io_service == NULL);
+ rpc_io_service = new asio::io_service();
+- rpc_ssl_context = new ssl::context(*rpc_io_service, ssl::context::sslv23);
++ rpc_ssl_context = new ssl::context(ssl::context::sslv23);
+
+ const bool fUseSSL = GetBoolArg("-rpcssl", false);
+
+@@ -651,7 +651,7 @@
+ LogPrintf("ThreadRPCServer ERROR: missing server private key file %s\n", pathPKFile.string());
+
+ string strCiphers = GetArg("-rpcsslciphers", "TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH");
+- SSL_CTX_set_cipher_list(rpc_ssl_context->impl(), strCiphers.c_str());
++ SSL_CTX_set_cipher_list(rpc_ssl_context->native_handle(), strCiphers.c_str());
+ }
+
+ std::vector<ip::tcp::endpoint> vEndpoints;