summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05ae0f99bbf046bea9b72545a0405951f5166a2c (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
46
47
48
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=haveged-git
pkgver=1.9.18.r4.g1c5eb6b
pkgrel=1
pkgdesc="A simple entropy daemon"
arch=('i686' 'x86_64')
url="https://www.issihosts.com/haveged/"
license=('GPL3')
depends=('glibc')
makedepends=('git')
provides=("haveged=$pkgver")
conflicts=('haveged')
options=('staticlibs')
source=("git+https://github.com/jirka-h/haveged.git")
sha256sums=('SKIP')


pkgver() {
  cd "haveged"

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

build() {
  cd "haveged"

  autoreconf -fi
  ./configure \
    --prefix="/usr" \
    --bindir="/usr/bin" \
    --sbindir="/usr/bin"
  make
}

check() {
  cd "haveged"

  make check
}

package() {
  cd "haveged"

  make DESTDIR="$pkgdir" install

  install -Dm644 "init.d/service.fedora" "$pkgdir/usr/lib/systemd/system/haveged.service"
}