summaryrefslogtreecommitdiff
path: root/dieharder/PKGBUILD
blob: 097525cf4473d8bbdad2786b978e206fab53e0c8 (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
# Contributor: Fabian Köhler <fabian2804 (AT) googlemail (DOT) com >
# Maintainer:  Erich Eckner <arch at eckner dot net>

pkgname=dieharder
pkgver=3.31.1
pkgrel=5
pkgdesc="A Random Number Test Suite"
arch=('i686' 'pentium4' 'x86_64')
_pinned_dependencies=(
  'glibc>=2.31'
  'gsl=2.6'
)
depends=("${_pinned_dependencies[@]}")
url="http://www.phy.duke.edu/~rgb/General/dieharder.php"
license=('GPL')
source=("http://webhome.phy.duke.edu/~rgb/General/dieharder/${pkgname}-${pkgver}.tgz"
        'autogen.patch'
        'stdint.patch')
sha256sums=('6cff0ff8394c553549ac7433359ccfc955fb26794260314620dfa5e4cd4b727f'
            '0df2d1957accfebba3e4083f7e1184aac10091c93f79a3174c79ebdae613831d'
            '1ea17f15580fa9ac8831d20a3e4f5c412b8330bf2183f704371e167206497714')
provides=('dieharder')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -uN autogen.sh ../autogen.patch || return 1
  patch -uN include/dieharder/libdieharder.h ../stdint.patch || return 1
  ./autogen.sh
  make -j1
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}/" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: