summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8788e74b1308aa3743542925241bdbaa9eb698fa (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
# Maintainer: Alex J. Malozemoff <amaloz@galois.com>
pkgname=libsnark-git
_pkgname=libsnark
pkgver=v20140603.r321.g3e92af1
pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
pkgrel=1
pkgdesc="libsnark: a C++ library for zkSNARK proofs"
arch=('i686' 'x86_64')
url="https://github.com/scipr-lab/libsnark"
license=('MIT')
depends=('gmp')
makedepends=('cmake')
provides=('libsnark')
source=("git+https://github.com/scipr-lab/libsnark.git")
sha1sums=('SKIP')

build() {
  cd "$srcdir/$_pkgname"

  git submodule update --init
  cmake .
  make
}

check() {
  cd "$srcdir/$_pkgname"

  make -k check
}

package() {
  cd "$srcdir/$_pkgname"

  make DESTDIR="$pkgdir/" install
}