summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a29131e94fc439e40fbe8299fddea43d97380a94 (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: Johannes Loher <johannes dot loher at fg4f dot de>

_gitname=codecrypt
pkgname="${_gitname}-git"
pkgver=1.7.5.r0.gfdddafd
pkgrel=1
pkgdesc='The post-quantum cryptography tool - git version'
arch=('x86_64' 'i686')
url='http://e-x-a.org/codecrypt/'
license=('LGPL3')
depends=('gmp' 'fftw>=3.0' 'crypto++')
makedepends=('git')
provides=("${_gitname}")
conflicts=("${_gitname}")
source=('git://github.com/exaexa/codecrypt.git')
md5sums=('SKIP')

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

build() {
	cd "${srcdir}/${_gitname}"
	./autogen.sh
	./configure LIBS=-lpthread --prefix=/usr
	make
}

check() {
	cd "${srcdir}/${_gitname}"
	make -k check
}

package() {
	cd "${srcdir}/${_gitname}"
	make DESTDIR="$pkgdir/" install
}