summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 50f0efc6dd7cc3a4d5d989c0264b7e20118ad55d (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
# Maintainer: Moritz Lipp <mlq@pwmt.org>
pkgname=relic
_pkgname=relic-toolkit
pkgver=0.5.0
pkgrel=1
pkgdesc="RELIC is an Efficient Library for Cryptography"
arch=('x86_64' 'i686')
url="https://github.com/relic-toolkit/relic"
license=('GPL')
makedepends=('cmake' 'doxygen')
source=("https://github.com/relic-toolkit/relic/archive/${_pkgname}-${pkgver}.tar.gz")
md5sums=('b552761f949c2e18a92111a395a00f79')

build() {
	cd "$srcdir/$pkgname-$_pkgname-$pkgver"
  cmake -DCMAKE_INSTALL_PREFIX=/usr .
	make
}

check() {
	cd "$srcdir/$pkgname-$_pkgname-$pkgver"
  ctest
}

package() {
	cd "$srcdir/$pkgname-$_pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}