summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eba1f0e3ccd1549b57e301242d63796bc2ffc7e (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
# Maintainer: Andrew Fischer <andrew at apastron dot co>
pkgname=multichain-alpha
pkgver=2.0
pkgrel=4
pkgdesc="MultiChain open source platform for private blockchains - version 4 alpha"
arch=('x86_64')
url="https://github.com/MultiChain/multichain"
license=('GPLv3')
depends=('db4.8' 'boost' 'openssl')
provides=('multichain-alpha')
source=("https://github.com/MultiChain/multichain/archive/${pkgver}-release.tar.gz" "multichain-boost-openssl.patch")
md5sums=('1c7f36172ffc0a48cf4c4f8740c2efa9' 'f3655179f4b1778afb367801aca87ae0')

prepare() {
  cd "${srcdir}/multichain-${pkgver}-release"
  # Multichain uses an out of date boost and openssl, patch to fix
  patch -p1 < ${srcdir}/multichain-boost-openssl.patch
}

build() {
  cd "${srcdir}/multichain-${pkgver}-release"
  ./autogen.sh
  ./configure --prefix="/usr"
  make
}

package() {
  cd "${srcdir}/multichain-${pkgver}-release"
  make DESTDIR="${pkgdir}" install
}