summaryrefslogtreecommitdiff
path: root/pcr/gajim-plugin-omemo/PKGBUILD
blob: aff3a350941bbcb70295e1f2fe0763cdada25e00 (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
# Maintainer (AUR): Bjoern Franke <bjo+aur at schafweide.org>
# Contributor (AUR): Tommaso Sardelli <lacapannadelloziotom AT gmail DOT com>

# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
# Contributor: Wael Karram <wael@waelk.tech>

# parabola changes and rationale:
# no changes.

pkgname=gajim-plugin-omemo
_pkgname=omemo
pkgver=2.8.15
pkgrel=1
_pythonversion=3.10
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>=1.4' 'gajim<=1.4.90' 'python-qrcode' 'python-setuptools' 'python-cryptography' 'python-axolotl')
provides=('gajim-plugin-omemo')
conflicts=('gajim-plugin-omemo-git')
source=("https://ftp.gajim.org/plugins/master/${_pkgname}/${_pkgname}_${pkgver}.zip")
sha512sums=('5c3322239a149512f96b35359f0f423070f2e16f660885f62485306aaf6baeade564c8e5ab2fcfb63c1554dca8624c5d6fda5c0435c83aaafb484c98092fce48')

package() {
  cd "${srcdir}"

  # Remove unnecessary files
  rm -f CHANGELOG COPYING

  # Install the plugin
  install -d "${pkgdir}/usr/lib/python${_pythonversion}/site-packages/gajim/data/plugins/${_pkgname}"
  cp -r * "${pkgdir}/usr/lib/python${_pythonversion}/site-packages/gajim/data/plugins/${_pkgname}/"
}