1 # Contributor: Andre Klitzing <aklitzing () online () de>
2 # Contributor: Ute <moc liamg msg_omh <- backwards >
3 # Contributor: mutantmonkey <mutantmonkey@mutantmonkey.in>
9 pkgdesc="Simple python bindings for OTR"
11 url="http://python-otr.pentabarf.de"
13 depends=('libotr>=3.2.0' 'python2')
17 source=(http://$pkgname.pentabarf.de/oldotr/releases/$pkgname-$_pkgver.tar.gz
18 http://$pkgname.pentabarf.de/releases/patches/$pkgname-0.2.2.patch)
19 md5sums=('e753e6516d611d0c37a3fc785fb29b21'
20 'c6615caeccfad5d9d0e3c2596390f88e')
21 sha256sums=('9395ce816452aee28e0ae003c66433a67e65f2bf8390cbefb247b657e0c840b1'
22 '72654726d127bb051e5efbcf11c7bf505334d6c6aa19799b358e2eb067ade888')
25 cd "${srcdir}/${pkgname}-${_pkgver}"
27 patch -Np0 -i ../$pkgname-0.2.2.patch
29 # Great python3 rebuild
30 for file in $(find . -name '*.py' -print); do
31 sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' "${file}"
32 sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "${file}"
35 python2 setup.py build
39 cd "${srcdir}/${pkgname}-${_pkgver}"
41 python2 setup.py install --prefix=/usr --root="${pkgdir}"