summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO42
-rw-r--r--PKGBUILD71
-rw-r--r--desired@.service12
-rw-r--r--txmempool.patch40
4 files changed, 165 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bc9011f350d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,42 @@
+pkgbase = desire
+ pkgdesc = Desire peer-to-peer network based digital currency
+ pkgver = 0.12.2.1
+ pkgrel = 0
+ url = http://www.desire-crypto.com/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = boost
+ makedepends = automoc4
+ makedepends = qrencode
+ makedepends = miniupnpc
+ makedepends = protobuf
+ makedepends = zeromq
+ depends = boost-libs
+ depends = libevent
+ optdepends = zeromq: Optional, allows generating ZMQ notifications
+ optdepends = miniupnpc: Firewall-jumping support
+ optdepends = db4.8: Wallet storage
+ source = desire-daemon-0.12.2.1.tar.gz::https://github.com/lazyboozer/Desire/archive/Desire-v.0.12.2.1.tar.gz
+ source = txmempool.patch
+ source = desired@.service
+ sha256sums = 8461553d17922a11f9575547227aa6d9a90dac5cc3b489b6bb5bd056439ba9df
+ sha256sums = 2d033c1ee77e1fae89da61f3b0e494feaf91f1b860fe4b3c0ec848c013776a25
+ sha256sums = f75b464c6ca050848c758c71848e830f4264e7ee70627592fa5442a293b3b5ca
+
+pkgname = desire-daemon
+ pkgdesc = Desire peer-to-peer network based digital currency (daemon)
+
+pkgname = desire-cli
+ pkgdesc = Desire peer-to-peer network based digital currency (CLI)
+
+pkgname = desire-qt
+ pkgdesc = Desire peer-to-peer network based digital currency (Qt)
+ depends = boost-libs
+ depends = libevent
+ depends = qt5-base
+ depends = qt5-tools
+ depends = miniupnpc
+ optdepends = protobuf: Data interchange format used for payment protocol
+ optdepends = qrencode: Optional for generating QR codes
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5cf08b4ebf2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Michael Thalmeier <michael@thalmeier.at>
+# Contributor: Michael Thalmeier <michael@thalmeier.at>
+
+pkgname=('desire-daemon' 'desire-cli' 'desire-qt')
+pkgbase=desire
+pkgver=0.12.2.1
+pkgrel=0
+arch=('i686' 'x86_64')
+url="http://www.desire-crypto.com/"
+depends=('boost-libs' 'libevent')
+makedepends=('boost' 'automoc4' 'qrencode' 'miniupnpc' 'protobuf' 'zeromq')
+optdepends=('zeromq: Optional, allows generating ZMQ notifications'
+ 'miniupnpc: Firewall-jumping support'
+ 'db4.8: Wallet storage')
+pkgdesc="Desire peer-to-peer network based digital currency "
+license=('MIT')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/lazyboozer/Desire/archive/Desire-v.${pkgver}.tar.gz"
+ "txmempool.patch"
+ "desired@.service")
+sha256sums=('8461553d17922a11f9575547227aa6d9a90dac5cc3b489b6bb5bd056439ba9df'
+ '2d033c1ee77e1fae89da61f3b0e494feaf91f1b860fe4b3c0ec848c013776a25'
+ 'f75b464c6ca050848c758c71848e830f4264e7ee70627592fa5442a293b3b5ca')
+
+prepare() {
+ cd "${srcdir}/Desire-Desire-v.${pkgver}"
+ patch -p1 -i "$srcdir/txmempool.patch"
+}
+
+build() {
+ cd "${srcdir}/Desire-Desire-v.${pkgver}"
+ chmod +x autogen.sh
+ chmod +x share/genbuild.sh
+ ./autogen.sh
+ ./configure --with-incompatible-bdb --enable-hardening
+ make
+}
+
+package_desire-daemon() {
+ pkgdesc+="(daemon)"
+
+ cd "${srcdir}/Desire-Desire-v.${pkgver}"
+ install -Dm644 "${srcdir}/desired@.service" "${pkgdir}/usr/lib/systemd/system/desired@.service"
+ install -Dm755 "src/desired" "${pkgdir}/usr/bin/desired"
+ install -Dm644 "contrib/debian/examples/desire.conf" "${pkgdir}/usr/share/doc/${pkgname}/examples/desire.conf"
+ install -Dm644 "contrib/debian/manpages/desired.1" "${pkgdir}/usr/share/man/man1/desired.1"
+ install -Dm644 "contrib/debian/manpages/desire.conf.5" "${pkgdir}/usr/share/man/man5/desire.conf.5"
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
+
+package_desire-cli() {
+ pkgdesc+="(CLI)"
+
+ cd "${srcdir}/Desire-Desire-v.${pkgver}"
+ install -Dm755 "src/desire-cli" "${pkgdir}/usr/bin/desire-cli"
+ install -Dm755 "src/desire-tx" "${pkgdir}/usr/bin/desire-tx"
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
+
+package_desire-qt() {
+ depends+=('qt5-base' 'qt5-tools' 'miniupnpc')
+ optdepends=('protobuf: Data interchange format used for payment protocol'
+ 'qrencode: Optional for generating QR codes')
+
+ pkgdesc+="(Qt)"
+
+ cd "${srcdir}/Desire-Desire-v.${pkgver}"
+ install -Dm755 "src/qt/desire-qt" "${pkgdir}/usr/bin/desire-qt"
+ install -Dm644 "contrib/debian/desire-qt.desktop" "${pkgdir}/usr/share/applications/desire.desktop"
+ install -Dm644 "share/pixmaps/desire128.png" "${pkgdir}/usr/share/pixmaps/desire128.png"
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+}
diff --git a/desired@.service b/desired@.service
new file mode 100644
index 00000000000..369dbb61040
--- /dev/null
+++ b/desired@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Desire Daemon
+After=network.target
+
+[Service]
+User=%i
+Group=users
+Type=simple
+ExecStart=/usr/bin/desired
+
+[Install]
+WantedBy=multi-user.target
diff --git a/txmempool.patch b/txmempool.patch
new file mode 100644
index 00000000000..8481d42d7ca
--- /dev/null
+++ b/txmempool.patch
@@ -0,0 +1,40 @@
+diff --git a/src/txmempool.h b/src/txmempool.h
+index 89f7283..cbeae80 100644
+--- a/src/txmempool.h
++++ b/src/txmempool.h
+@@ -204,7 +204,7 @@ struct mempoolentry_txid
+ class CompareTxMemPoolEntryByDescendantScore
+ {
+ public:
+- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
++ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
+ {
+ bool fUseADescendants = UseDescendantScore(a);
+ bool fUseBDescendants = UseDescendantScore(b);
+@@ -226,7 +226,7 @@ public:
+ }
+
+ // Calculate which score to use for an entry (avoiding division).
+- bool UseDescendantScore(const CTxMemPoolEntry &a)
++ bool UseDescendantScore(const CTxMemPoolEntry &a) const
+ {
+ double f1 = (double)a.GetModifiedFee() * a.GetSizeWithDescendants();
+ double f2 = (double)a.GetModFeesWithDescendants() * a.GetTxSize();
+@@ -241,7 +241,7 @@ public:
+ class CompareTxMemPoolEntryByScore
+ {
+ public:
+- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
++ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
+ {
+ double f1 = (double)a.GetModifiedFee() * b.GetTxSize();
+ double f2 = (double)b.GetModifiedFee() * a.GetTxSize();
+@@ -255,7 +255,7 @@ public:
+ class CompareTxMemPoolEntryByEntryTime
+ {
+ public:
+- bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b)
++ bool operator()(const CTxMemPoolEntry& a, const CTxMemPoolEntry& b) const
+ {
+ return a.GetTime() < b.GetTime();
+ }