summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e47f50b81dcab97c9da883594521868c87a4862 (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
# Maintainer: M Novick <mnovick1988@gmail.com>
# 
# Note: Copied and updated from old AUR3.
#

pkgname=d0_blind_id-git
pkgver=r129.834b51b
pkgrel=1
pkgdesc="Cryptographic library for identification with Schnorr ID scheme and Blind RSA Signatures"
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url="http://github.com/divVerent/d0_blind_id"
license=('BSD')
depends=('gmp')
makedepends=('git')
source=("git+https://github.com/divVerent/d0_blind_id.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/d0_blind_id"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/d0_blind_id"
  sh autogen.sh
  ./configure --prefix=/usr --enable-static --enable-shared
  make
}

package() {
  cd "$srcdir/d0_blind_id"
  make DESTDIR="$pkgdir/" install
  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}