summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bbc26593abca9826c878090fb888384bcf67804b (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
# Maintainer: David Parrish <daveparrish@tutanota.com>

# shellcheck disable=SC2034,SC2164

pkgname=joinmarket-qt-git
pkgver=0.7.0.r3.gc90432e
pkgrel=1
pkgdesc="Coinjoin software, includes a QT wallet and requires Bitcoin Core as backend"
arch=('any')
depends=( 'python-pyqt5' 'pyside2' 'python-qt5reactor'
          'python-jmbase-git' 'python-jmclient-git' 'python-jmbitcoin-git' 'python-jmdaemon-git'
         )
makedepends=('git' 'python-setuptools')
url="https://github.com/JoinMarket-Org/joinmarket-clientserver"
license=('GPL3')
source=("$pkgname::git+https://github.com/JoinMarket-Org/joinmarket-clientserver.git"
       "joinmarket-qt")
sha256sums=('SKIP'
            '5a4b5f36706f6de0b7c360871e2bbdc5ecf33505b8565365363fdecf1c10e051')
options=(!strip)

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

# GUI and other scripts
package_joinmarket-qt-git() {
    # Dump scripts into /opt/joinmarket
    mkdir -p "${pkgdir:?}/opt/$pkgname"
    cp -r "${srcdir:?}/${pkgname}/scripts/"* "${pkgdir}/opt/$pkgname"

    # Use entrypoint script to manage getting joinmarket-qt started
    mkdir -p "$pkgdir/usr/bin"
    cp "$srcdir/joinmarket-qt" "$pkgdir/usr/bin"
}