summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 019b5b1f589ce74442e06423fe69f15a09db4ae8 (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: Wiktor W. <wykwit@disroot.org>
# Contributor: Steven Allen <steven@stebalien.com>

pkgname=pbc
pkgver=0.5.14
pkgrel=1
pkgdesc='The pairing-based cryptography library'
arch=('x86_64' 'i686')
url='https://crypto.stanford.edu/pbc/'
license=('LGPL-3.0-or-later')
depends=('gmp')
provides=('libpbc.so')
source=("$url/files/$pkgname-$pkgver.tar.gz")
sha256sums=('772527404117587560080241cedaf441e5cac3269009cdde4c588a1dce4c23d2')

build() {
  cd "$pkgname-$pkgver"

  ./configure --prefix=/usr --enable-optimized
  make
}

check() {
  cd "$pkgname-$pkgver"

  make -k check
}

package() {
  cd "$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}