diff options
author | Dmitry Kharitonov | 2017-11-04 22:30:25 +0500 |
---|---|---|
committer | Dmitry Kharitonov | 2017-11-04 22:30:25 +0500 |
commit | 77dfad0d95572b8df43df758884f3b7c8c864f73 (patch) | |
tree | ca61c5c78b2b5870cfef907b1e1907f14749e817 | |
download | aur-77dfad0d95572b8df43df758884f3b7c8c864f73.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | 0001-miniupnpc.patch | 31 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | curecoin-qt-git.install | 11 | ||||
-rw-r--r-- | curecoin.desktop | 10 |
5 files changed, 138 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..bfaeb2563147 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +# Generated by mksrcinfo v8 +# Sat Nov 4 17:30:01 UTC 2017 +pkgbase = curecoin-qt-git + pkgdesc = GUI client (wallet) for CureCoin cryptocurrency + pkgver = r115.442977b + pkgrel = 1 + url = https://curecoin.net/ + install = curecoin-qt-git.install + arch = x86_64 + arch = i686 + license = MIT + makedepends = boost + makedepends = openssl-1.0 + makedepends = db + depends = qt5-base + depends = miniupnpc + depends = boost-libs + provides = curecoin-qt + conflicts = curecoin-qt + source = git+https://github.com/cygnusxi/CurecoinSource.git + source = 0001-miniupnpc.patch + source = curecoin.desktop + sha256sums = SKIP + sha256sums = ef598aee46b5ad12b43db8942c08ef2cbece002efa731394066ebff654bea5e1 + sha256sums = 47e4c7305240dd16361d922bf6bc3a86ee53d7e0bc43bdf12c341ea0b7968387 + +pkgname = curecoin-qt-git + diff --git a/0001-miniupnpc.patch b/0001-miniupnpc.patch new file mode 100644 index 000000000000..8b4095a24e0f --- /dev/null +++ b/0001-miniupnpc.patch @@ -0,0 +1,31 @@ +From 9f3e48e5219a09b5ddfd6883d1f0498910eff4b6 Mon Sep 17 00:00:00 2001 +From: Pavel Vasin <pavel@vasin.nl> +Date: Sun, 23 Aug 2015 23:53:49 +0300 +Subject: [PATCH] add support for miniupnpc api version 14 + +The value of new arg ttl is set to 2 as it's recommended default. +--- + src/net.cpp | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/src/net.cpp b/src/net.cpp +index fb5726a2b9e..4c6331f8d57 100644 +--- a/src/net.cpp ++++ b/src/net.cpp +@@ -1120,10 +1120,14 @@ void ThreadMapPort() + #ifndef UPNPDISCOVER_SUCCESS + /* miniupnpc 1.5 */ + devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0); +-#else ++#elif MINIUPNPC_API_VERSION < 14 + /* miniupnpc 1.6 */ + int error = 0; + devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error); ++#else ++ /* miniupnpc 1.9.20150730 */ ++ int error = 0; ++ devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error); + #endif + + struct UPNPUrls urls; + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0980a44502ea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Dmitry Kharitonov <darksab0r at gmail com> + +pkgname=curecoin-qt-git +pkgver=r115.442977b +pkgrel=1 +pkgdesc="GUI client (wallet) for CureCoin cryptocurrency" +arch=('x86_64' 'i686') +url="https://curecoin.net/" +license=('MIT') +provides=('curecoin-qt') +conflicts=('curecoin-qt') +depends=('qt5-base' 'miniupnpc' 'boost-libs') +makedepends=('boost' 'openssl-1.0' 'db') +source=("git+https://github.com/cygnusxi/CurecoinSource.git" + "0001-miniupnpc.patch" + "curecoin.desktop") +install=curecoin-qt-git.install + +sha256sums=('SKIP' + 'ef598aee46b5ad12b43db8942c08ef2cbece002efa731394066ebff654bea5e1' + '47e4c7305240dd16361d922bf6bc3a86ee53d7e0bc43bdf12c341ea0b7968387') + +pkgver() { + cd ${srcdir}/CurecoinSource + set -o pipefail + git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${srcdir}/CurecoinSource" + # Switch to OpenSSL 1.0 + echo "INCLUDEPATH += /usr/include/openssl-1.0" >> "curecoin-qt.pro" + echo "LIBS += -L/usr/lib/openssl-1.0 -lcrypto -lz" >> "curecoin-qt.pro" + + # Fix compilation error with miniupnpc v 1.9 + patch -p1 <"${srcdir}/0001-miniupnpc.patch" +} + +build() { + cd "${srcdir}/CurecoinSource" + qmake + make ${MAKEFLAGS} + +} + +package() { + cd "${srcdir}" + install -Dm644 curecoin.desktop ${pkgdir}/usr/share/applications/curecoin.desktop + + cd "${srcdir}/CurecoinSource" + mkdir -p -m 755 "${pkgdir}/usr/share/curecoin-qt/" + install -Dm755 curecoin-qt "${pkgdir}/usr/bin/curecoin-qt" + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 src/qt/res/icons/curecoin.png "${pkgdir}/usr/share/pixmaps/curecoin.png" + + #make DESTDIR=${pkgdir} install +} diff --git a/curecoin-qt-git.install b/curecoin-qt-git.install new file mode 100644 index 000000000000..677345e20b2a --- /dev/null +++ b/curecoin-qt-git.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}
\ No newline at end of file diff --git a/curecoin.desktop b/curecoin.desktop new file mode 100644 index 000000000000..fb6450ccb735 --- /dev/null +++ b/curecoin.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=CureCoin +Comment=CureCoin P2P Cryptocurrency +Exec=/usr/bin/curecoin-qt +Terminal=false +Type=Application +Icon=/usr/share/pixmaps/curecoin.png +MimeType=x-scheme-handler/curecoin; +Categories=Network; |