updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / libopenssl2 / PKGBUILD
blob7e8fc929b67bd2652bc8b3d3630d64504655292e
1 # Maintainer: kfgz <kfgz at interia pl>
3 pkgname=libopenssl2
4 pkgver=0.9.6b
5 pkgrel=34
6 _pkgv=32.7
7 pkgdesc='The old openssl libraries'
8 arch=('i686' 'x86_64')
9 url='http://www.openssl.org'
10 license=('custom:BSD')
11 depends=('glibc')
12 makedepends=('rpmunpack' 'cpio' 'gzip' 'bash')
13 source=(http://files.directadmin.com/services/7.2/openssl-${pkgver}-${_pkgv}.i386.rpm)
14 md5sums=('8a9f793cc9fc713551c307072fe718d6')
16 build() {
17   cd ${srcdir}
18   
19   rpmunpack openssl-${pkgver}-${_pkgv}.i386.rpm
20   gzip -d openssl-${pkgver}-${_pkgv}.cpio.gz
23 package() {
24   cd ${pkgdir}
26   mkdir -p {lib,usr/bin,usr/share/doc/openssl-${pkgver}}
27   mkdir -p {usr/share/man/man1,usr/share/ssl/CA,usr/share/ssl/certs}
28   mkdir -p {usr/share/ssl/lib,usr/share/ssl/misc,usr/share/man/man5}
29   mkdir -p usr/share/man/man7
30   cpio -i < ${srcdir}/openssl-${pkgver}-${_pkgv}.cpio
32   # Move and delete files and folders
33   mkdir -p usr
34   mv lib usr
35   rm -R {usr/bin,usr/share/man,usr/share/ssl}
37   # Add symlink
38   ln -s /usr/lib/libssl.so.0.9.6b usr/lib/libssl.so.2
39   ln -s /usr/lib/libcrypto.so.0.9.6b usr/lib/libcrypto.so.2