summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5a4d5a8edad771483833489f79256eda7c6e4b1 (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Mathias Scherer <scherer.mat@gmail.com>
pkgname=echidna
pkgver=2.2.0
pkgrel=1
epoch=
pkgdesc="A Fast Smart Contract Fuzzer"
arch=('x86_64')
url="https://github.com/crytic/echidna"
license=('AGPL')
makedepends=('stack>=2.0.0'
	'cmake')
depends=('libsecp256k1'
	'python-pip')
source=("echidna-$pkgver.tar.gz::https://github.com/crytic/echidna/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('49236096e7b99c569cdb9d8a0976a32dbdfa910028af29391d7f5666da67977b')

build() {
	cd "./$pkgname-$pkgver"
	sh .github/scripts/install-libff.sh
	stack build --flag echidna:-static --extra-lib-dirs="$HOME/.local/lib/" --extra-include-dirs="$HOME/.local/include/"
}

package() {
	cd "./$pkgname-$pkgver"
	pip install slither-analyzer
	stack install --flag echidna:-static --extra-lib-dirs="$HOME/.local/lib/" --extra-include-dirs="$HOME/.local/include/"
}