blob: 5950c4c0cf5548a906cfa19c97c119665fd21ba6 (
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
69
70
71
72
73
74
75
76
|
# Maintainer: txtsd <aur.archlinux@ihavea.quest>
# Contributor: The one with the braid <info@braid.business>
# Contributor: Robert Falkenberg <robert.falkenberg@srs.io>
# Contributor: Pierre Schmitz <pierre@archlinux.de>
pkgname=openssl-static
_pkgname="${pkgname%-static}"
pkgver=3.4.0
pkgrel=1
pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (with static libs)'
arch=(x86_64 aarch64 armv7h i686 pentium4 riscv64)
url='https://www.openssl.org'
license=('Apache-2.0')
depends=(glibc)
makedepends=(perl)
optdepends=(ca-certificates perl)
replaces=(openssl-perl openssl-doc)
provides=(
libcrypto.so
libssl.so
"openssl=${pkgver}"
)
conflicts=("${_pkgname}")
backup=(etc/ssl/openssl.cnf)
options=(staticlibs)
source=(
"https://github.com/${_pkgname}/${_pkgname}/releases/download/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}.tar.gz"{,.asc}
ca-dir.patch
)
sha256sums=('e15dda82fe2fe8139dc2ac21a36d4ca01d5313c75f99f46c4e8a27709b7294bf'
'SKIP'
'0a32d9ca68e8d985ce0bfef6a4c20b46675e06178cc2d0bf6d91bd6865d648b7')
validpgpkeys=(
'EFC0A467D613CB83C7ED6D30D894E2CE8B3D79F5'
'BA5473A2B0587B07FB27CF2D216094DFD0CB81EF'
)
prepare() {
cd "${_pkgname}-${pkgver}"
# set ca dir to /etc/ssl by default
patch -Np1 -i "${srcdir}/ca-dir.patch"
}
build() {
cd "${_pkgname}-${pkgver}"
./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib \
shared enable-ktls enable-ec_nistp_64_gcc_128 linux-${CARCH}
make depend
make
}
check() {
cd "${_pkgname}-${pkgver}"
# the test fails due to missing write permissions in /etc/ssl
# revert this patch for make test
patch -Rp1 -i "${srcdir}/ca-dir.patch"
make HARNESS_JOBS=$(nproc) test
patch -Np1 -i "${srcdir}/ca-dir.patch"
# re-run make to re-generate CA.pl from the patched .in file.
make apps/CA.pl
}
package() {
cd "${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" MANDIR=/usr/share/man MANSUFFIX=ssl install_sw install_ssldirs install_man_docs
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.txt"
}
|