summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64d61460d8079c9874f232d0e7edcfac6266da4f (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.5.r1.g40abb98
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' 'git')
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/"
}