summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e80f010d396864d960510d9349a5803589377613 (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
45
# Maintainer: Tim Diels <timdiels.m@gmail.com>

pkgname=electroneum
pkgver=0.11.0.0
pkgrel=1
pkgdesc='Secure, private, mobile based cryptocurrency '
arch=('any')
url='https://electroneum.com'
license=('custom')
makedepends=('cmake')
depends=('boost' 'openssl' 'unbound')
#checkdepends=('gtest')
optdepends=(
    'miniupnpc: NAT punching'
    'libunwind: stack traces'
    'ldns: SSL toolkit'
    'expat: XML parsing'
    'doxygen: documentation'
    'graphviz: documentation'
)
source=("https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz")
md5sums=('0c459d99d18db514ba66f1df84e92daa')

build() {
    cd "$pkgname-$pkgver"
    # Note: plain make fails with undeclared DIFFICULTY_TARGET_V1
    # make release-static fails when compiling with e.g. -j8
    make -j1 release-static
}

# Tests always fail due to DIFFICULT_TARGET_V1 error, so we don't run them
#check() {
#    cd "$pkgname-$pkgver"
#    #make release-test
#}

package() {
    cd "$pkgname-$pkgver"
    # Note: make has no install target. Static build means we don't need to
    # install lib.
    install -dm755 "$pkgdir/usr/bin/"
    install -Dm755 build/release/bin/* "$pkgdir/usr/bin/"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}