summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cbe1e6b2e27064011134add0dbfb1097c70359b (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
# Maintainer: bigsmoke <and_a_large_soda et proton DOT me>
pkgname=circom-git
pkgver=v2.1.2.r0.g2fbf965
pkgrel=1
# epoch=
pkgdesc="A compiler for cryptographic circuits used for zkSNARK and PLONK proofs"
arch=('any')
url="https://docs.circom.io"
license=('GPL')
#groups=()
depends=()
makedepends=(git cargo)
#checkdepends=()
#optdepends=()
provides=()
#conflicts=()
#replaces=()
#backup=()
#options=()
#install=
#changelog=
source=($pkgname::git+https://github.com/iden3/circom.git)
#noextract=()
md5sums=('SKIP')
#validpgpkeys=()

pkgver() {
	cd "$srcdir/$pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

# prepare() {}

build() {
	cd "$pkgname"
	cargo build -j$(nproc) --release
}

package() {
	cd $srcdir/$pkgname
	# installs to target/release
	cargo install -j$(nproc) --path circom
	# just move bin
	install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}"
}