blob: 1cb115a0786405ebaefcd1190b426a46fbedaf5c (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Dimytch <aspamkiller from yandex point ru>
pkgname=openssl-gost-engine-git
pkgver=r507.aba6613
pkgrel=3
pkgdesc="A reference implementation of the Russian GOST crypto algorithms for OpenSSL"
arch=('i686' 'x86_64')
url="https://github.com/gost-engine/engine/"
license=('apache')
depends=('perl' 'openssl')
makedepends=('git' 'cmake')
optdepends=('ca-certificates')
provides=('openssl-gost-engine')
conflicts=(
'openssl-gost-engine'
'gost-engine'
)
source=(
"git+https://github.com/gost-engine/engine.git#branch=openssl_1_1_1"
"gost.cnf"
"example-openssl.cnf"
"openssl-gost-engine.install"
)
sha512sums=(
SKIP
'72baef8de46462399f591e4aba73f7f910c6d27f14814cf54764a6ca11851d3b69a138475fc677990a621049dec9939eb4f83be5dcf07f1e85f24b97c90332ad'
'b78d96d14edce1be96fab96da0e97e4c94c59e311428e2f84d77864366e7b3bbaaf6a8192d275552bb578075a5aada2200be83bec256ceb9aa057f0a892d6f8b'
'1083718c4aad31c1b41743c77bae202f2746e0610e2f7c7891f70b97cff52b9ffd5afdd82edf41a991492425ac823d14949a35d9fff375a9963fbc2e645461ad'
)
install='openssl-gost-engine.install'
backup=(
'etc/ssl/gost.cnf'
)
pkgver(){
cd "$srcdir/engine"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/engine"
mkdir -p build
}
build() {
cd "$srcdir/engine/build"
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
cmake --build . --config Release
}
check() {
cd "$srcdir/engine/build"
make test
}
package() {
cd "$srcdir/engine/build"
DESTDIR="$pkgdir" cmake --build . --target install --config Release
install -Dm0644 "$srcdir/gost.cnf" -t "$pkgdir/etc/ssl"
mkdir -p -m0644 "$pkgdir/usr/share/doc/openssl-gost-engine"
install -m0644 "$srcdir/engine/INSTALL.md" \
"$srcdir/engine/README.gost" \
"$srcdir/engine/README.md" \
"$pkgdir/usr/share/doc/openssl-gost-engine"
}
|