blob: 64a2863c2926061545d330a918b81f1ff02ef327 (
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
39
40
41
|
# Maintainer: Jose Angel Soler Ortiz <jose.angel.soler.ortiz at gmail dot com>
# Contributor: Balazs Nemeth <b2nemeth at gmail dot com>
pkgname=trng4-git
pkgver=v4.24.r3.g589bdf2
pkgrel=1
pkgdesc='A modern C++ pseudo random number generator library'
arch=('any')
url='https://github.com/rabauke/trng4'
license=('BSD')
makedepends=('git' 'cmake>=3.10.0')
checkdepends=('boost-libs')
conflicts=('trng4')
provides=('trng4')
source=('git+https://github.com/rabauke/trng4')
# Upstream handles static and dynamic as different CMake targets instead of treating them as the same target with different properties.
options=(staticlibs)
sha512sums=('SKIP')
pkgver() {
cd trng4
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B "trng4/build" -S "trng4" \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
make -C "trng4/build" trng4_shared trng4_static test_all
}
check() {
make -C "trng4/build" test
}
package() {
make -C "trng4/build" DESTDIR="$pkgdir" install
install -Dm644 trng4/COPYING ${pkgdir}/usr/share/licenses/trng4/COPYING
}
|