blob: 2bdfacb0e6dc701483ecab9b12de7cd45377163c (
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
|
# Maintainer: Strykar <strykar@hotmail.com>
pkgname=infnoise-openssl-git
pkgver=r22.d161bfd
pkgrel=1
pkgdesc="OpenSSL Engine for random number generation using the Infnoise hardware TRNG"
arch=('x86_64')
url="https://github.com/tinskip/infnoise-openssl"
license=('LGPL-3.0-only')
depends=('openssl' 'libftdi' 'libinfnoise')
makedepends=('git')
source=("git+https://github.com/tinskip/infnoise-openssl.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname}"
make CFLAGS="-fPIC -Wall -Wextra -O2 -I/usr/include/libftdi1 -I/usr/include" \
LDFLAGS="-shared -lcrypto -linfnoise -L/usr/lib"
}
package() {
cd "${srcdir}/${pkgname}"
install -Dm755 "infnoise-openssl.so" "${pkgdir}/usr/lib/engines-3/infnoise-openssl.so"
install -Dm644 "infnoise-openssl.cnf" "${pkgdir}/etc/ssl/infnoise-openssl.cnf"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|