1 # Maintainer: Julien Quintard <mycure@gmail.com>
3 pkgname=mingw32-openssl
7 pkgdesc="Toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols. Mingw32 build."
8 depends=('mingw32-runtime' 'mingw32-zlib')
9 options=(!strip !buildflags)
11 url="http://www.openssl.org"
12 source=(http://openssl.org/source/openssl-$pkgver.tar.gz)
13 md5sums=('e358705fb4a8827b5e9224a73f442025')
17 cd $srcdir/openssl-$pkgver
19 ./Configure --cross-compile-prefix=i486-mingw32- \
20 -DOPENSSL_NO_CAPIENG \
21 --prefix=/usr/i486-mingw32 mingw shared zlib-dynamic
24 make INSTALL_PREFIX=$pkgdir install
25 install -m755 -o 0 -g 0 libeay32.dll ssleay32.dll \
26 $pkgdir/usr/i486-mingw32/bin/
29 find . -name '*.a' -o -name '*.dll' -o -name '*.exe' | xargs -rtl1 i486-mingw32-strip -g
30 rm -rf usr/i486-mingw32/{bin/c_rehash,ssl/misc,ssl/man}