blob: 2f1aedc79801529937b96d3320dcb7bb3c6794f6 (
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
49
50
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=rng-tools-git
pkgver=6.16.r10.g15c4eed
pkgrel=1
pkgdesc="Random number generator daemon"
arch=('i686' 'x86_64')
url="https://github.com/nhorman/rng-tools"
license=('GPL3')
depends=('glibc' 'curl' 'jansson' 'jitterentropy' 'libp11' 'libxml2' 'openssl' 'sysfsutils')
makedepends=('git')
provides=("rng-tools=$pkgver")
conflicts=('rng-tools')
backup=('etc/conf.d/rngd')
source=("git+https://github.com/nhorman/rng-tools.git"
"rngd.conf::https://gitlab.archlinux.org/archlinux/packaging/packages/rng-tools/-/raw/main/rngd.conf")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "rng-tools"
git describe --long --tags | sed 's/^[vV]//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "rng-tools"
./autogen.sh
./configure \
--prefix="/usr" \
--sbindir="/usr/bin"
make
}
check() {
cd "rng-tools"
make check
}
package() {
cd "rng-tools"
make DESTDIR="$pkgdir" install
install -Dm644 "rngd.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm644 "$srcdir/rngd.conf" "$pkgdir/etc/conf.d/rngd"
}
|