upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-openssl / trunk / PKGBUILD
blob0b59ec55a2331381d91b0822a9e285e4896535f4
1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
3 _pkgbasename=openssl
4 pkgname=lib32-$_pkgbasename
5 epoch=1
6 pkgver=3.0.8
7 pkgrel=1
8 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (32-bit)'
9 arch=('x86_64')
10 url='https://www.openssl.org'
11 license=('Apache')
12 depends=('lib32-glibc' "${_pkgbasename}")
13 optdepends=('ca-certificates')
14 provides=('libcrypto.so' 'libssl.so')
15 source=("https://www.openssl.org/source/${_pkgbasename}-${pkgver}.tar.gz"{,.asc}
16         'ca-dir.patch')
17 sha256sums=('6c13d2bf38fdf31eac3ce2a347073673f5d63263398f1f69d0df4a41253e4b3e'
18             'SKIP'
19             '0a32d9ca68e8d985ce0bfef6a4c20b46675e06178cc2d0bf6d91bd6865d648b7')
20 validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491'
21               '7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C'
22               'A21FAB74B0088AA361152586B8EF1A6BA9DA2D5C')
24 prepare() {
25         cd "$srcdir"/$_pkgbasename-$pkgver
27         # set ca dir to /etc/ssl by default
28         patch -Np1 -i "$srcdir"/ca-dir.patch
31 build() {
32         export CC="gcc -m32"
33         export CXX="g++ -m32"
34         export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
36         cd "$srcdir"/$_pkgbasename-$pkgver
38         # mark stack as non-executable: http://bugs.archlinux.org/task/12434
39         ./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib32 \
40                 shared enable-ktls linux-elf \
41                 "-Wa,--noexecstack ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"
43         make MAKEDEPPROG="${CC}" depend
44         make
47 check() {
48         cd "$srcdir"/$_pkgbasename-$pkgver
49         # the test fails due to missing write permissions in /etc/ssl
50         # revert this patch for make test
51         patch -Rp1 -i "$srcdir"/ca-dir.patch
52         make test
53         patch -Np1 -i "$srcdir"/ca-dir.patch
56 package() {
57         cd "$srcdir"/$_pkgbasename-$pkgver
58         make DESTDIR="$pkgdir" install_sw
60         rm -r "$pkgdir"/usr/{include,bin}