summaryrefslogtreecommitdiff
path: root/pcr/python2-potr/PKGBUILD
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-07-20 07:50:19 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-07-20 08:48:41 -0400
commitd82001ada129dc2a16ff5671496dafdaef70415e (patch)
tree4574900738b8f4228a47ef70e63cd72e340ed9af /pcr/python2-potr/PKGBUILD
parente9e6e012cdddb2e84031553bea7a53953afa9b51 (diff)
downloadabslibre-d82001ada129dc2a16ff5671496dafdaef70415e.tar.gz
abslibre-d82001ada129dc2a16ff5671496dafdaef70415e.tar.bz2
abslibre-d82001ada129dc2a16ff5671496dafdaef70415e.zip
[python2-potr]: upgrade to v1.0.2
Diffstat (limited to 'pcr/python2-potr/PKGBUILD')
-rw-r--r--pcr/python2-potr/PKGBUILD39
1 files changed, 19 insertions, 20 deletions
diff --git a/pcr/python2-potr/PKGBUILD b/pcr/python2-potr/PKGBUILD
index d6d154056..3d6e77032 100644
--- a/pcr/python2-potr/PKGBUILD
+++ b/pcr/python2-potr/PKGBUILD
@@ -1,38 +1,37 @@
-# Maintainer (Arch): Michael Düll <mail@akurei.me>
+# 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
-pkgver=1.0.1
+_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"
+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/python-otr/pure-python-otr/archive/${pkgver}.tar.gz")
-sha512sums=('db76af179d6ed7276ecdca7f16da8e1ed4e2454ce66a269016833c87a512e165bea6afd3b2785f863d183611530a0f6c3793f1620be1f01ab6bb6c3963b874da')
+source=(${_srcname}-${pkgver}.tar.gz::https://github.com/python-otr/${_srcname}/archive/${pkgver}.tar.gz)
-PYTHON=`which python2`
+sha512sums=('e35f6ea7db64af92a966b22857a1a670a1c930aa01a1bc88d5ba7e4ba62100808c193fbccbbde4d29039610a383b374c95a090fd98b208890c721e01bba87fb8')
-prepare() {
- cd $srcdir/pure-python-otr-${pkgver}
- set_python2
-}
-package() {
- cd $srcdir/pure-python-otr-${pkgver}
- $PYTHON ./setup.py install --root=$pkgdir/
-}
+prepare()
+{
+ cd "$srcdir"/${_srcname}-${pkgver}
-# 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
}
+package()
+{
+ cd "$srcdir"/${_srcname}-${pkgver}
-# vim:set ts=2 sw=2 et:
+ python2 ./setup.py install --root="${pkgdir}"/
+}