diff options
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/litecoin-qt/PKGBUILD | 31 | ||||
-rw-r--r-- | pcr/litecoin-qt/upnp-1.9.patch | 19 |
2 files changed, 36 insertions, 14 deletions
diff --git a/pcr/litecoin-qt/PKGBUILD b/pcr/litecoin-qt/PKGBUILD index 3f9ae7297..7943ce1b6 100644 --- a/pcr/litecoin-qt/PKGBUILD +++ b/pcr/litecoin-qt/PKGBUILD @@ -1,26 +1,30 @@ -# Maintainer (Arch): Loïc Guitaut <flink at belfalas dot eu> +# Maintainer (Arch): Loïc Guitaut <flink at belfalas.eu> +# Contributor (Arch): Nicolas Doualot <packages at slubman.info> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname='litecoin-qt' -pkgver=0.8.7.4 -pkgrel=1 -arch=('i686' 'x86_64' 'mips64el') +pkgver=0.10.2.2 +pkgrel=2 +arch=('i686' 'x86_64') url="http://www.litecoin.org/" -makedepends=('boost' 'automoc4' 'qrencode' 'miniupnpc') +makedepends=('boost' 'automoc4' 'qrencode' 'miniupnpc' 'protobuf') license=('MIT') pkgdesc="Peer-to-peer network based digital currency (QT)" -depends=(boost-libs qt4 miniupnpc qrencode) +depends=(boost-libs qt4 miniupnpc qrencode protobuf) conflicts=(litecoin) install=litecoin-qt.install source=("https://github.com/litecoin-project/litecoin/archive/v$pkgver.tar.gz" - "$pkgname.desktop") -sha256sums=('032d1eb2ffb06ce467f514e08a66f42bcd507df2d8f1cf2c0541f2906288931a' - 'cfc53dc9028745358235698ddd562d3e6b4a3ea9f896f5efc1aa8cd81f595559') + "$pkgname.desktop" + "upnp-1.9.patch") +sha256sums=('952c84b181323db17a8fa23217f59b576ad3ebad92c158b3a7c29d458a1130dc' + 'cfc53dc9028745358235698ddd562d3e6b4a3ea9f896f5efc1aa8cd81f595559' + '3060917f8e327002da842534265392a1849239ec5049f25c1ae8a81c3952e7b1') build() { cd "$srcdir/litecoin-$pkgver" - - # and make qt gui - qmake-qt4 USE_QRCODE=1 USE_UPNP=1 + patch -p1 -i ../upnp-1.9.patch + ./autogen.sh + ./configure --with-incompatible-bdb make } @@ -28,9 +32,8 @@ build() { package() { install -Dm644 litecoin-qt.desktop "$pkgdir"/usr/share/applications/litecoin.desktop cd "$srcdir/litecoin-$pkgver" - install -Dm755 litecoin-qt "$pkgdir"/usr/bin/litecoin-qt + install -Dm755 src/qt/litecoin-qt "$pkgdir"/usr/bin/litecoin-qt install -Dm644 share/pixmaps/bitcoin128.png "$pkgdir"/usr/share/pixmaps/litecoin128.png - install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } diff --git a/pcr/litecoin-qt/upnp-1.9.patch b/pcr/litecoin-qt/upnp-1.9.patch new file mode 100644 index 000000000..42e6cf18e --- /dev/null +++ b/pcr/litecoin-qt/upnp-1.9.patch @@ -0,0 +1,19 @@ +diff -Naur a/src/net.cpp b/src/net.cpp +--- a/src/net.cpp 2015-06-15 10:51:30.000000000 +0200 ++++ b/src/net.cpp 2015-10-03 16:15:10.441886309 +0200 +@@ -1020,10 +1020,14 @@ + #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; |