summaryrefslogtreecommitdiff
path: root/repo/monero-gui/monero-gui.xibuild
blob: 02eb90757a9420616532f6e3c69135d761544b27 (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-qtquickcontrols qt5-qtdeclarative qt5-qtbase qt5-qtsvg libgpg-error qt5-qttools"
DEPS="musl qt5-qtquickcontrols qt5-qtxmlpatterns "

PKG_VER=musl
SOURCE="https://github.com/monero-project/monero-gui.git"
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
}