summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c96c488a47c619184ae207989aacdb931aa585f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: redfish <redfish at galactica dot pw>

pkgname='monero-wallet-qt'
_monerover=0.14.0.0
pkgver=${_monerover}
pkgrel=1
arch=('x86_64' 'i686')
url="https://getmonero.org/"
license=('custom:Cryptonote')

provides=('monero-wallet-qt')

depends=("libmonero-wallet>=$_monerover"
	'openssl' 'boost-libs>=1.45'  'libunwind' 'readline' 'unbound' 'hidapi'
	'qt5-base' 'qt5-declarative' 'qt5-graphicaleffects'
	'qt5-location' 'qt5-quickcontrols' 'qt5-quickcontrols2' 'qt5-tools' 'qt5-webchannel'
	'qt5-webengine' 'qt5-x11extras' 'qt5-xmlpatterns')

makedepends=('git' 'cmake' 'boost')

pkgdesc="Official QT GUI wallet for Monero, a private, secure, untraceable peer-to-peer currency"

source=("https://github.com/monero-project/monero-gui/archive/v${pkgver}.tar.gz"
        "0001-pro-add-libusb-1.0-to-non-static-link-for-Linux.patch"
        "0002-pro-add-protobuf-lib-to-link-commnad-for-Linux.patch")

_srcdir=monero-gui-$_monerover

prepare() {
    cd "$srcdir/$_srcdir"

    echo "var GUI_VERSION = \"$pkgver\"" > version.js
    echo "var GUI_MONERO_VERSION = \"$_monerover\"" >> version.js

    # The upstream build system adds these dependencies as part of a list
    # autogenerated during the build of monero. We don't want to have
    # to build monero just to build the wallet.
    patch -p1 < ../0001-pro-add-libusb-1.0-to-non-static-link-for-Linux.patch
    patch -p1 < ../0002-pro-add-protobuf-lib-to-link-commnad-for-Linux.patch
}

build() {
    cd "$srcdir/$_srcdir"

    make -C src/zxcvbn-c

    qmake
    make
}

package() {
    install -D -m755 "$srcdir/$_srcdir/release/bin/monero-wallet-gui" "$pkgdir/usr/bin/monero-wallet-qt"
    install -D -m644 "$srcdir/$_srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

sha256sums=('6dab90fbb908dc8fc9889d110ea87d5d1b0f1e802b57f316e0dd59ff0dfcd8b1'
            '68de913110996c232a284004057f2655c1798472670e31524f86b005f6bf07a8'
            '76fbeb62810f9f0281320e5b5309395d3239f1dcb8f08b71b98e8a4c06e33e98')