summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-03-22 13:06:26 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-03-22 13:06:26 -0300
commitcfb1c47189036108549643797ab21629a2af3e0c (patch)
tree0f7978b3315e0d8fbfd4989ef1619975a86ed9dc
parent7b19f90cdd75e03cfab02fc1a9f19ffe5e2aa9e5 (diff)
parent9f59cbc1fd9ac9b0c5b08f81447dbd1794992f3d (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
-rw-r--r--pcr/python2-potr/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/pcr/python2-potr/PKGBUILD b/pcr/python2-potr/PKGBUILD
new file mode 100644
index 000000000..39613ad95
--- /dev/null
+++ b/pcr/python2-potr/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Michael Düll <mail@akurei.me> PGP-Key: AAAEE882
+
+pkgname=python2-potr
+pkgver=1.0.0beta6
+pkgrel=3
+pkgdesc="This is a pure Python OTR implementation; it does not bind to libotr."
+arch=(any)
+url="https://github.com/afflux/pure-python-otr"
+license=('LGPL')
+depends=('python2' 'python2-crypto')
+conflicts=('python-potr-git' 'python-potr')
+replaces=('python-potr')
+options=(!emptydirs)
+source=("https://github.com/afflux/pure-python-otr/tarball/${pkgver}")
+
+PYTHON=`which python2`
+
+build() {
+ cd $srcdir/afflux*
+ set_python2
+ $PYTHON ./setup.py build
+}
+
+package() {
+ cd $srcdir/afflux*
+ $PYTHON ./setup.py install --root=$pkgdir/
+}
+
+# To use python2 instead of default python v3.
+set_python2() {
+ 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
+}
+
+
+# vim:set ts=2 sw=2 et:
+sha512sums=('323ad31e782409b7bd93539dfc0088de8b114075b88de81123b732aff609fbb2a2c06221c52266225ce54e20e9856b25759bae84c93244a1258ccba3825c8b1c')