summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e137d92618802d4feb08b9f472173938db53af4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname='python-consonance-git'
pkgver=0.1.3.r0.gabe1a20
pkgrel=1
pkgdesc="implements WhatsApp's handshake process which makes use of Noise Pipes from Noise Protocol"
url="https://github.com/tgalal/consonance"
arch=('any')
license=('GPL')
depends=('python' 'python-transitions' 'python-protobuf' 'python-axolotl-curve25519' 'python-dissononce')
makedepends=('python-setuptools')
provides=('python-consonance')
source=("${pkgname}::git+https://github.com/tgalal/consonance")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/${pkgname}"
  python setup.py install --root="$pkgdir/"
}