# Maintainer: Chocobo1 pkgname=jitterentropy-git pkgver=3.4.1.r7.g3c3c116 pkgrel=1 pkgdesc="Library for hardware RNG based on CPU timing jitter" arch=('i686' 'x86_64') url="https://www.chronox.de/jent.html" license=('BSD' 'GPL') depends=('glibc') makedepends=('git') provides=("jitterentropy=$pkgver") conflicts=('jitterentropy') options=('staticlibs') source=("git+https://github.com/smuellerDD/jitterentropy-library.git") sha256sums=('SKIP') pkgver() { cd "jitterentropy-library" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "jitterentropy-library" make } package() { cd "jitterentropy-library" make \ DESTDIR="$pkgdir" \ PREFIX="/usr" \ install \ install-static chmod 644 "$pkgdir/usr/lib"/*.a install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/jitterentropy" }