updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python25-ssl / PKGBUILD
blob0207be503be5a93b56b1df93ff7abd5f2e6a3607
1 # Maintainer: Joel Goguen <jgoguen@jgoguen.ca>
3 pkgname=python25-ssl
4 _realname=ssl
5 pkgver=1.15
6 pkgrel=1
7 pkgdesc="New SSL module for Python 2.5 and earlier"
8 arch=('i686' 'x86_64')
9 license=('Python')
10 depends=('python25' 'openssl' 'heimdal')
11 makedepends=()
12 optdepends=()
13 options=()
14 url="http://pypi.python.org/pypi/ssl"
15 md5sums=('81ea8a1175e437b4c769ae65b3290e0c'
16         'c3b36cc99aa3b2f2c6fc2461bb25c6cc')
17 sha256sums=('1266302ce62c4b60c7ca0e1d3d104ba11d2749e5881d8ac4f006cf9a0446d589'
18         'd7e55eb310561c8b6a74b43f96cf6b9e8047c2d1c94b6b24086edb847ae1c4aa')
19 source=(http://pypi.python.org/packages/source/s/${_realname}/${_realname}-${pkgver}.tar.gz#md5=${md5sums[0]}
20         LICENSE)
22 build() {
23         cd "${srcdir}/${_realname}-${pkgver}"
25         sed -i 's/python /python2\.5 /g' Makefile
26         
27         make
28         
29         install -m755 -d "${pkgdir}/usr/lib/python2.5/site-packages/"
30         install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}/"
31         install -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
32         cp -R "${srcdir}/${_realname}-${pkgver}/build/lib.linux-${CARCH}-2.5/ssl/" "${pkgdir}/usr/lib/python2.5/site-packages/ssl"