updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openssl-bionic / PKGBUILD
blob6199888180698b2fcaa2c65b322feb97c72be1e9
1 # Maintainer: Jens Staal <staal1978@gmail.com>
3 pkgname=openssl-bionic
4 pkgver=0.9.8o
5 pkgrel=1
6 pkgdesc='The Open Source toolkit for Secure Sockets Layer and Transport Layer Security, built with Bionic libc'
7 arch=('i686')
8 url='https://www.openssl.org'
9 license=('custom:BSD')
10 depends=('perl' 'bionic-svn')
11 optdepends=('ca-certificates')
12 source=("https://www.openssl.org/source/openssl-$pkgver.tar.gz" 'Configure.patch')
13 md5sums=('63ddc5116488985e820075e65fbe6aa4' '130ca34a9621b271f2e4cf3543490329')
15 _bionicwrapper=("gcc  -I /usr/lib/bionic/libc/include -I /usr/lib/bionic/libc/kernel/common/linux/ \
16 -I /usr/lib/bionic/libc/kernel/common/ -I /usr/lib/bionic/libc/arch-x86/include/ \
17 -I /usr/lib/bionic/libc/kernel/arch-x86/  -I /usr/lib/bionic/libc/private -fPIC -DPIC -nostdinc -nostdlib -static -l /usr/lib/bionic/bionic.a\
18 -Dwchar_t='char' -fno-builtin -D_SIZE_T_DECLARED -DElf_Size='u_int32_t' -I /usr/lib/bionic/libm/include \
19 -L /usr/lib/bionic  -D_BYTE_ORDER=_LITTLE_ENDIAN -lc")
21 build() {
22 # build instructions taken from: https://bitbucket.org/jrossi/metasploit/src/7f4bdc5394ca/documentation/posix_meterpreter.txt
24         rm -rf $srcdir/build
25         cp -ar $srcdir/openssl-$pkgver $srcdir/build #starting fresh every time
26         cd $srcdir/build
28         patch -p0 Configure $srcdir/Configure.patch
29         ./Configure threads no-zlib no-krb5 386 --prefix=/usr linux-msf no-dlfcn shared
31         make CC="$_bionicwrapper" depend clean all
34 package() {
35         cd $srcdir/openssl-$pkgver
36   install -D -m755 libcrypto.so.0.9.8 "$pkgdir/usr/lib/libcrypto.so.0.9.8"
37   install -D -m755 libssl.so.0.9.8 "$pkgdir/usr/lib/libssl.so.0.9.8"