summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9737a6298e6f7e68d008273d3e146e0b3bec13b4 (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
# Maintainer: Balazs Nemeth <b2nemeth@gmail.com>
pkgname=trng4-git
pkgver=r24.5e130e9
pkgrel=1
pkgdesc="State of the art C++ pseudo-random number generator library for sequential and parallel Monte Carlo simulations"
arch=('x86_64')
url="https://www.numbercrunch.de/trng/"
source=("git+https://github.com/rabauke/trng4.git")
md5sums=('SKIP')
_gitname="trng4"

prepare() {
	cd "$_gitname"
	autoreconf -fvi
	automake
}

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

build() {
	cd "$_gitname"
	./configure --prefix=/usr
	make
}

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