summaryrefslogtreecommitdiff
path: root/pcr/python-axolotl/PKGBUILD
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-06-01 17:20:40 -0400
committerDavid P <megver83@parabola.nu>2017-06-01 17:20:40 -0400
commitf37c05d994ed5e63b4f80f5d51beb5301763056d (patch)
treeaf79e48343992731694bf1e1071bd9cf18a69d53 /pcr/python-axolotl/PKGBUILD
parent52f0e581088c84e9dff0bce2f79e4123bd3532f8 (diff)
downloadabslibre-f37c05d994ed5e63b4f80f5d51beb5301763056d.tar.gz
abslibre-f37c05d994ed5e63b4f80f5d51beb5301763056d.tar.bz2
abslibre-f37c05d994ed5e63b4f80f5d51beb5301763056d.zip
Uploaded gajim-plugin-omemo and its dependencies to [pcr]
Diffstat (limited to 'pcr/python-axolotl/PKGBUILD')
-rw-r--r--pcr/python-axolotl/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/pcr/python-axolotl/PKGBUILD b/pcr/python-axolotl/PKGBUILD
new file mode 100644
index 000000000..2932ff5ef
--- /dev/null
+++ b/pcr/python-axolotl/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Contributor: Alexandre Bouvier <contact AT amb DOT tf>
+# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
+# Contributor: Tommaso Sardelli <lacapannadelloziotom AT gmail DOT com>
+# Contributor: Philipp Joram <phijor AT t-online DOT de>
+
+pkgname=('python-axolotl' 'python2-axolotl')
+pkgbase=python-axolotl
+pkgver=0.1.39
+pkgrel=1
+pkgdesc="Python port of libaxolotl"
+arch=('any')
+url="https://github.com/tgalal/python-axolotl"
+license=('GPL3')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tgalal/python-axolotl/archive/$pkgver.tar.gz")
+md5sums=('89ae2ace340f02f1377a71063265ffc6')
+
+prepare() {
+ cp -a "$pkgbase-$pkgver"{,-python2}
+}
+
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/$pkgbase-$pkgver-python2"
+ python2 setup.py build
+}
+
+package_python-axolotl() {
+ depends=('python-protobuf' 'python-crypto' 'python-axolotl-curve25519')
+
+ cd "$pkgbase-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+
+package_python2-axolotl() {
+ depends=('python2-protobuf' 'python2-crypto' 'python2-axolotl-curve25519')
+
+ cd "$pkgbase-$pkgver-python2"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}