summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a475e962d0dd1907c900c797209d199d60bd3494 (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
# Maintainer: Maxime "pep" Buquet <archlinux@bouah.net>

_tag=v0.5.9-beta
pkgbase=${pkgname}
pkgname=python-x3dh
pkgver=0.5.9.beta
pkgrel=2
pkgdesc="A python implementation of the Extended Triple Diffie-Hellman key agreement protocol"
url="https://github.com/Syndace/${pkgname}"
license=('MIT')
arch=('any')
makedepends=('git' 'python-setuptools')
source=("${pkgname}::git+https://github.com/Syndace/${pkgname}.git#tag=${_tag}")
sha256sums=('SKIP')
depends=('python-xeddsa')

pkgver() {
    cd ${pkgname}
    printf "%s" "$(git describe --tags | sed -e 's/^v//;s/-/./')"
}

build() {
    cd ${pkgname}
    python3 setup.py build
}

package() {
    cd ${pkgname}
    python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}