blob: 7dfda64c27c29cae7fe49da135ac095bb67043b1 (
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
36
37
38
39
40
41
42
|
# Maintainer: Maxime "pep" Buquet <archlinux@bouah.net>
_pkgname=python-doubleratchet
_pkgname2=python2-doubleratchet
pkgbase=${_pkgname}-git
pkgname=("${_pkgname}-git" "${_pkgname2}-git")
pkgver=r27.9ccb6c6
pkgrel=2
pkgdesc="A python implementation of the Double Ratchet algorithm"
url='https://github.com/Syndace/python-doubleratchet'
license=('MIT')
arch=('any')
makedepends=('python-setuptools' 'python2-setuptools')
source=("${_pkgname}::git+https://github.com/Syndace/${_pkgname}.git")
sha256sums=('SKIP')
pkgver() {
cd ${_pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package_python-doubleratchet-git() {
depends=('python-pynacl'
'python-cryptography'
'python-hkdf')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
cd ${_pkgname}
python3 setup.py install --root="${pkgdir}" --optimize=1
}
package_python2-doubleratchet-git() {
depends=('python2-pynacl'
'python2-cryptography'
'python2-hkdf')
provides=("${_pkgname2}")
conflicts=("${_pkgname2}")
cd ${_pkgname}
python2 setup.py install --root="${pkgdir}" --optimize=1
}
|