From f37c05d994ed5e63b4f80f5d51beb5301763056d Mon Sep 17 00:00:00 2001 From: David P Date: Thu, 1 Jun 2017 17:20:40 -0400 Subject: Uploaded gajim-plugin-omemo and its dependencies to [pcr] --- pcr/gajim-plugin-omemo/PKGBUILD | 29 +++++++++++++++++++++++ pcr/python-axolotl-curve25519/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++ pcr/python-axolotl/PKGBUILD | 43 ++++++++++++++++++++++++++++++++++ 3 files changed, 115 insertions(+) create mode 100644 pcr/gajim-plugin-omemo/PKGBUILD create mode 100644 pcr/python-axolotl-curve25519/PKGBUILD create mode 100644 pcr/python-axolotl/PKGBUILD diff --git a/pcr/gajim-plugin-omemo/PKGBUILD b/pcr/gajim-plugin-omemo/PKGBUILD new file mode 100644 index 000000000..0ef4606fe --- /dev/null +++ b/pcr/gajim-plugin-omemo/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: David P. +# Contributor: Tommaso Sardelli + +pkgname=gajim-plugin-omemo +_pkgname=omemo +pkgver=1.2.1 +pkgrel=1 +pkgdesc="Gajim plugin for OMEMO Multi-End Message and Object Encryption." +arch=(any) +url="https://dev.gajim.org/gajim/gajim-plugins/wikis/OmemoGajimPlugin" +license=('GPL') +depends=("gajim" "python2-qrcode" "python2-setuptools" "python2-cryptography" "python2-axolotl" "python2-future") +provides=('gajim-plugin-omemo') +conflicts=('gajim-plugin-omemo-git') +source=("${_pkgname}-${pkgver}.zip::https://ftp.gajim.org/plugins_0.16_zip/${_pkgname}.zip") +sha512sums=(SKIP) + +package() { + cd ${srcdir}/${_pkgname} + + # Remove unnecessary files + rm -r CHANGELOG COPYING setup.cfg + + # Install the plugin + install -d ${pkgdir}/usr/share/gajim/plugins/omemo + cp -r * ${pkgdir}/usr/share/gajim/plugins/omemo/ +} + +# vim:set ts=2 sw=2 et: diff --git a/pcr/python-axolotl-curve25519/PKGBUILD b/pcr/python-axolotl-curve25519/PKGBUILD new file mode 100644 index 000000000..c062623f3 --- /dev/null +++ b/pcr/python-axolotl-curve25519/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: David P. +# Contributor: Alexandre Bouvier +# Contributor: Ivan Shapovalov +# Contributor: Tommaso Sardelli +# Contributor: Philipp Joram + +pkgname=('python-axolotl-curve25519' 'python2-axolotl-curve25519') +pkgbase=python-axolotl-curve25519 +pkgver=0.1 +pkgrel=1 +pkgdesc="Python wrapper for curve25519 library" +arch=('any') +url="https://github.com/tgalal/python-axolotl-curve25519" +license=('GPL3') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://files.pythonhosted.org/packages/source/${pkgbase::1}/$pkgbase/$pkgbase-$pkgver.tar.gz") +md5sums=('f28d902df9044f0bf86a35a4bd2ec092') + +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-curve25519() { + depends=('python') + + cd "$pkgbase-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} + +package_python2-axolotl-curve25519() { + depends=('python2') + + cd "$pkgbase-$pkgver-python2" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build +} 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. +# Contributor: Alexandre Bouvier +# Contributor: Ivan Shapovalov +# Contributor: Tommaso Sardelli +# Contributor: Philipp Joram + +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 +} -- cgit v1.2.3