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

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


prepare() {
  cd "jitterentropy-library"

  sed -i -e 's|sbin|bin|g' Makefile
}

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"

  install -dm755 "$pkgdir/usr/include"
  make DESTDIR="$pkgdir" PREFIX="/usr" install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libjitterentropy"
}