summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acbc679a368a4ba3a25db11d91b235ef1500fb00 (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: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=jitterentropy-git
pkgver=3.4.1.r7.g3c3c116
pkgrel=1
pkgdesc="Library for hardware RNG based on CPU timing jitter"
arch=('i686' 'x86_64')
url="https://www.chronox.de/jent.html"
license=('BSD' 'GPL')
depends=('glibc')
makedepends=('git')
provides=("jitterentropy=$pkgver")
conflicts=('jitterentropy')
options=('staticlibs')
source=("git+https://github.com/smuellerDD/jitterentropy-library.git")
sha256sums=('SKIP')


pkgver() {
  cd "jitterentropy-library"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "jitterentropy-library"

  make
}

package() {
  cd "jitterentropy-library"

  make \
    DESTDIR="$pkgdir" \
    PREFIX="/usr" \
    install \
    install-static
  chmod 644 "$pkgdir/usr/lib"/*.a
  install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/jitterentropy"
}