blob: 3d6e7703211485b12d8c6d9422d9bb3407685136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer (AUR): Eliot Whalan <ewhal at pantsu dot cat>:
# Contrbutor (AUR): Michael Düll <mail@akurei.me>
# Contributor: fauno <fauno@parabola.nu>
# Contrbutor: bill-auger <bill-auger@programmer.net>
pkgname=python2-potr
_srcname=pure-python-otr
pkgver=1.0.2
pkgrel=1
pkgdesc="This is a pure Python2 OTR implementation; it does not bind to libotr."
arch=(any)
url=https://github.com/afflux/pure-python-otr
license=('LGPL')
depends=('python2' 'python2-crypto')
source=(${_srcname}-${pkgver}.tar.gz::https://github.com/python-otr/${_srcname}/archive/${pkgver}.tar.gz)
sha512sums=('e35f6ea7db64af92a966b22857a1a670a1c930aa01a1bc88d5ba7e4ba62100808c193fbccbbde4d29039610a383b374c95a090fd98b208890c721e01bba87fb8')
prepare()
{
cd "$srcdir"/${_srcname}-${pkgver}
for file in $(find . -name '*.py' -print); do
sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' "${file}"
sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' "${file}"
done
}
package()
{
cd "$srcdir"/${_srcname}-${pkgver}
python2 ./setup.py install --root="${pkgdir}"/
}
|