archrelease: copy trunk to extra-x86_64
[arch-packages.git] / haveged / trunk / PKGBUILD
blob173f0050292ecac6ae967a8894466ea0ee1841ed
1 # Maintainer:  Christian Hesse <mail@eworm.de>
2 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: kfgz <kfgz at interia dot pl>
4 # Contributor: pootzko <pootzko at gmail dot com>
6 pkgname=haveged
7 pkgver=1.9.15
8 pkgrel=1
9 pkgdesc='Entropy harvesting daemon using CPU timings'
10 arch=('x86_64')
11 url='https://github.com/jirka-h/haveged'
12 license=('GPL')
13 depends=('glibc')
14 validpgpkeys=('8F6B7293B03E5AC5762B65CE2E2F252B05CCA168') # Jirka Hladky <hladky.jiri@gmail.com>
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/jirka-h/$pkgname/archive/v$pkgver.tar.gz")
16 sha256sums=('f882919ccead07ad6687a4784c0c501e617321e96dd0118403464969359cf6ad')
18 prepare() {
19   cd $pkgname-$pkgver
21   sed -i 's/@SBIN_DIR@/\/usr\/bin/' contrib/Fedora/haveged.service
24 build() {
25   cd $pkgname-$pkgver
27   ./configure \
28       --prefix=/usr \
29       --bindir=/usr/bin \
30       --sbindir=/usr/bin
31   make
34 check() {
35   cd ${pkgname}-${pkgver}
36   make check
39 package() {
40   cd $pkgname-$pkgver
42   make DESTDIR="$pkgdir" install
44   install -D -m0644 contrib/Fedora/haveged.service "$pkgdir"/usr/lib/systemd/system/haveged.service