[arch-commits] Commit in (3 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Thu Jan 10 20:42:35 UTC 2019


    Date: Thursday, January 10, 2019 @ 20:42:33
  Author: mtorromeo
Revision: 422052

Added jitterentropy package as a dependency of rng-tools

Added:
  jitterentropy/
  jitterentropy/trunk/
  jitterentropy/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: jitterentropy/trunk/PKGBUILD
===================================================================
--- jitterentropy/trunk/PKGBUILD	                        (rev 0)
+++ jitterentropy/trunk/PKGBUILD	2019-01-10 20:42:33 UTC (rev 422052)
@@ -0,0 +1,40 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com
+# Contributor: Timothy Redaelli <timothy.redaelli+aur at gmail.com>
+
+pkgname=jitterentropy
+_pkgname=$pkgname-library
+pkgver=2.1.2
+pkgrel=1
+pkgdesc='Hardware RNG based on CPU timing jitter'
+arch=('x86_64')
+url='http://www.chronox.de/jent.html'
+license=('BSD')
+depends=('glibc')
+source=(http://www.chronox.de/jent/$_pkgname-$pkgver.tar.xz{,.asc})
+sha256sums=('122bc46a477bc2618e9433ca616fce88f7c4f71cb0afda8c099f728bb28f6cc1'
+            'SKIP')
+validpgpkeys=(3BCC43D4D2C87D1784B69EE4421EE936326AC15B)
+
+prepare() {
+  cd "$_pkgname-$pkgver"
+
+  # Disable man page compression on install
+  sed -e '/\tgzip .*\/man\// d' -i Makefile
+  # Let the package manager handle stripping
+  sed -e '/\tinstall.*-s / s/-s //g' -i Makefile
+}
+
+build() {
+  cd "$_pkgname-$pkgver"
+  make jitterentropy
+}
+
+package() {
+  cd "$_pkgname-$pkgver"
+  install -dm755 "$pkgdir/usr/include"
+  make PREFIX=/usr DESTDIR="$pkgdir/" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  install -Dm644 COPYING.bsd "$pkgdir/usr/share/licenses/$pkgname/COPYING.bsd"
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list