summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 877f9c6803ab18e8a56de88e37e9ae4d53c507eb (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: Chris Magyar <c.magyar.ec@gmail.com>

pkgname=masari
pkgver=0.3.0.0
pkgrel=1
_gitrepo=masari
_gituser=masari-project
_gitver=v0.3.0.0
pkgdesc="Masari: cryptonote currency daemon and wallet"
arch=('x86_64')
url="https://github.com/$_gituser/$_gitrepo"
license=('custom:Cryptonote')
makedepends=('boost' 'cmake' 'git')
depends=('boost-libs' 'libunwind' 'miniupnpc' 'openssl' 'readline'
    'unbound' 'zeromq')
optdepends=('doxygen: documentation'
    'expat: XML parsing'
    'graphviz: documentation'
    'ldns: SSL toolkit')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$_gitver.tar.gz"
    boost.patch)
md5sums=('7efd2602db7862b34264e105a8182edd'
    '5f84a2b83dd85e4e791b93dbb8b703eb')

prepare() {
	cd "$pkgname-$pkgver"
    patch -p1 -i ../boost.patch
}

build() {
    cd "$pkgname-$pkgver"
    mkdir build
    cd build
    CXXFLAGS="-Wno-error=class-memaccess"
    cmake ..
    make
}

package() {
	cd "$pkgname-$pkgver"
    install -Dm755 ./build/bin/masari-blockchain-blackball \
        "$pkgdir/usr/bin/masari-blockchain-blackball"
    install -Dm755 ./build/bin/masari-blockchain-export \
        "$pkgdir/usr/bin/masari-blockchain-export"
    install -Dm755 ./build/bin/masari-blockchain-import \
        "$pkgdir/usr/bin/masari-blockchain-import"
    install -Dm755 ./build/bin/masari-blockchain-usage \
        "$pkgdir/usr/bin/masari-blockchain-usage"
    install -Dm755 ./build/bin/masarid "$pkgdir/usr/bin/masarid"
    install -Dm755 ./build/bin/masari-gen-trusted-multisig \
        "$pkgdir/usr/bin/masari-gen-trusted-multisig"
    install -Dm755 ./build/bin/masari-wallet-cli \
        "$pkgdir/usr/bin/masari-wallet-cli"
    install -Dm755 ./build/bin/masari-wallet-rpc \
        "$pkgdir/usr/bin/masari-wallet-rpc"
    install -Dm644 ./utils/conf/masarid.conf "$pkgdir/etc/masarid.conf"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}