1 # Maintainer: Pierre Schmitz <pierre@archlinux.de>
4 pkgname=lib32-$_pkgbasename
8 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (32-bit)'
10 url='https://www.openssl.org'
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}
17 sha256sums=('6c13d2bf38fdf31eac3ce2a347073673f5d63263398f1f69d0df4a41253e4b3e'
19 '0a32d9ca68e8d985ce0bfef6a4c20b46675e06178cc2d0bf6d91bd6865d648b7')
20 validpgpkeys=('8657ABB260F056B1E5190839D9C4D26D0E604491'
21 '7953AC1FBC3DC8B3B292393ED5E9E43F7DF9EE8C'
22 'A21FAB74B0088AA361152586B8EF1A6BA9DA2D5C')
25 cd "$srcdir"/$_pkgbasename-$pkgver
27 # set ca dir to /etc/ssl by default
28 patch -Np1 -i "$srcdir"/ca-dir.patch
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
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
53 patch -Np1 -i "$srcdir"/ca-dir.patch
57 cd "$srcdir"/$_pkgbasename-$pkgver
58 make DESTDIR="$pkgdir" install_sw
60 rm -r "$pkgdir"/usr/{include,bin}