summaryrefslogtreecommitdiff
path: root/repo/monero-gui/monero-gui.xibuild
blob: 8cb1dd9ce9406ed3a76a9e927bdd28e0515ea8d7 (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
#!/bin/sh

NAME="monero-gui"
DESC="QT GUI wallet for Monero: the secure, private, untraceable peer-to-peer currency"

MAKEDEPS="cmake monero git qt5-qtquickcontrols2 qt5-qtdeclarative qt5-qtbase qt5-qtsvg libgpg-error"
DEPS="musl "

PKG_VER=musl
SOURCE="https://github.com/monero-project/monero-gui"
ADDITIONAL="
easylogging.patch
monero-gui.desktop
monero-gui.xibuild
system-miniupnpc.patch
version-string.patch
"

prepare () {
    git submodule update --init --force --recursive
    cp *.patch monero/
    cd monero 
    apply_patches
    cd $BUILD_ROOT
}

build () {
    cmake -B build \
          -DCMAKE_BUILD_TYPE=Release \
          -DARCH=default \
          -DWITH_DESKTOP_ENTRY=OFF \
          -DSTACK_TRACE=OFF \
          .
	cmake --build build
}

package () {
  install -Dm755 build/bin/monero-wallet-gui "${PKG_DEST}/usr/bin/monero-wallet-gui"

  install -Dm644 monero-gui.desktop "${PKG_DEST}/usr/share/applications"
  for x in 16 24 32 48 64 96 128 256; do
    install -Dm644 "images/appicons/${x}x${x}.png" "${PKG_DEST}/usr/share/icons/hicolor/${x}x${x}/apps/monero-gui.png"
  done
}