summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 00b6da7bddd832aa9e6333f6ff5cf69ec34508d0 (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
43
44
45
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=jitterentropy-rngd-git
pkgver=1.2.8.r0.gade61a1
pkgrel=1
pkgdesc="Jitter RNG daemon"
arch=('i686' 'x86_64')
url="https://www.chronox.de/jent.html"
license=('BSD' 'GPL')
depends=('glibc')
makedepends=('git')
provides=("jitterentropy-rngd=$pkgver")
conflicts=('jitterentropy-rngd')
source=("git+https://github.com/smuellerDD/jitterentropy-rngd.git")
sha256sums=('SKIP')


prepare() {
  cd "jitterentropy-rngd"

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

pkgver() {
  cd "jitterentropy-rngd"

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

build() {
  cd "jitterentropy-rngd"

  unset CFLAGS
  make
}

package() {
  cd "jitterentropy-rngd"

  make \
    DESTDIR="$pkgdir" \
    PREFIX="/usr" \
    install
  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/jitterentropy-rngd"
}