summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 841b5be98f4b138bb8d0d7a569fb9fd35e44d4b0 (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
# Maintainer: metscoin <mets_coin@outlook.com>

pkgname=lux-qt
pkgver=5.2.2
pkgrel=1
arch=('i686' 'x86_64')
url="https://luxcore.io/"
license=('MIT')
pkgdesc="Cryptocurrency wallet(QT)"
depends=(boost-libs qt5-base qrencode miniupnpc db4.8 zeromq protobuf libevent)
makedepends=(boost qt5-tools libevent python)
conflicts=(luxcoin)
install=lux-qt.install
source=("${pkgname%-git}::git+https://github.com/LUX-Core/lux.git#tag=v${pkgver}"
        "$pkgname.desktop"
        "lux.patch")
sha256sums=('SKIP'
            '546ae8129ffd9a1e0b639441e38e97088439a33e204023963dfd771fe9cb756a'
            '2bbe1e79623fdf5d352f736e8844233c0b5ff2975b6e00bb27933253a2dde4b1')

prepare() {
   cd "$srcdir/$pkgname"
   patch -p1 -i "../lux.patch" 
}

build() {
  cd "$srcdir/$pkgname"
  find . -type f -iname "*.sh" -exec chmod +x {} \; 
  ./autogen.sh
  ./configure --with-gui=qt5 --without-miniupnpc --disable-tests --with-incompatible-bdb
  make
}

package() {
  install -Dm644 lux-qt.desktop "$pkgdir"/usr/share/applications/lux.desktop
  cd "$srcdir/$pkgname"
  install -Dm755 src/qt/lux-qt "$pkgdir"/usr/bin/lux-qt
  install -Dm644 share/pixmaps/bitcoin128.png "$pkgdir"/usr/share/pixmaps/lux128.png
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}