summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c9b4b4ae7c7722f3d1021a3c6cb8aa9a54b8578 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
# Maintainer: redfish <redfish at galactica dot pw>
pkgname='monero-wallet-qt-git'
_monerover=0.14.0.0
pkgver=0.14.0.0
pkgrel=1
arch=('x86_64' 'i686')
url="https://getmonero.org/"
license=('custom:Cryptonote')

provides=('monero-wallet-qt')
conflicts=('monero-wallet-qt')

depends=("libmonero-wallet-git>=$_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"

_repourl=https://github.com/monero-project/monero-gui
source=("git+$_repourl"
        "0001-pro-add-libusb-1.0-to-non-static-link-for-Linux.patch"
        "0002-pro-add-protobuf-lib-to-link-commnad-for-Linux.patch")

sha256sums=('SKIP')

_srcdir=monero-gui

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

    # Release tags might point to commits on a branch different than master,
    # so don't use them.
    #git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
    printf "$(echo $pkgver | sed 's/\.r.*//').r%s.g%s" \
        "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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=('SKIP'
            '68de913110996c232a284004057f2655c1798472670e31524f86b005f6bf07a8'
            '76fbeb62810f9f0281320e5b5309395d3239f1dcb8f08b71b98e8a4c06e33e98')