summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 048f186b950b4f50ab2974af35097a0b30ba5de9 (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
# Maintainer: Andrew Fischer <andrew at apastron dot co>
pkgname=multichain
pkgver=2.1
pkgrel=2
pkgdesc="MultiChain open source platform for private blockchains"
arch=('x86_64')
url="https://github.com/MultiChain/multichain"
license=('GPLv3')
depends=('db4.8' 'boost' 'openssl')
provides=('multichain')
source=("https://github.com/MultiChain/multichain/archive/${pkgver}.x-release.tar.gz" "multichain-boost-openssl.patch" "2023-08-15.patch")
sha256sums=('883e496eeb5a47f28f6f389a98d6905c14bbde13575bc3b2b03d1cc75089d454' '3837109b8654bd498ed6ddb9a43032cd8fa6343ac9fa4cb9506a0d8ea4953bc7' '36ace5228f17a9b2b5d731f2ba121c69b808207b7e17754831f44da5dc437750')

prepare() {
  cd "${srcdir}/multichain-${pkgver}.x-release"
  # Multichain uses an out of date boost and openssl, patch to fix
  patch -p1 < ${srcdir}/multichain-boost-openssl.patch
  # Patch by amixra for core and net
  patch -p1 < ${srcdir}/2023-08-15.patch
}

build() {
  cd "${srcdir}/multichain-${pkgver}.x-release"
  # perform the recommended v8build steps
  set MUTICHAIN_HOME=$(pwd)
  mkdir v8build
  pushd v8build
  curl -LO https://github.com/MultiChain/multichain-binaries/raw/master/linux-v8.tar.gz
  tar xzf linux-v8.tar.gz
  popd
  ./autogen.sh
  ./configure --prefix="/usr"
  make
}

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