summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91d2646ae839177f0a0b633b2e49d37403c5fd23 (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: Nicola Squartini <tensor5@gmail.com>

pkgname=eclair
pkgver=0.2alpha11
_commit=dbb4f5b467ef6af3f1337a2ffee0a4d0a035ab38
pkgrel=1
pkgdesc='A scala implementation of the Lightning Network'
arch=('any')
url='https://github.com/ACINQ/eclair'
license=('Apache')
depends=('java-environment=8' 'java-openjfx')
makedepends=('git' 'maven')
source=("git+https://github.com/ACINQ/eclair.git#commit=${_commit}"
        'eclair.sh')
sha256sums=('SKIP'
            'f70c72dfdcf25f09f1c72413b9302f81422db58bb8ed0c6c904ac2fb5432b414')

build() {
    cd ${pkgname}

    mvn package -Dmaven.test.skip=true
}

check() {
    cd ${pkgname}

    mvn test
}

package() {
    cd ${pkgname}

    install -Dm644 eclair-node-gui/target/eclair-node-gui-*.jar \
            "${pkgdir}/usr/share/${pkgname}/${pkgname}.jar"
    install -Dm755 "${srcdir}/eclair.sh" "${pkgdir}/usr/bin/eclair"
}