void-packages/srcpkgs/olm-python/template
2019-06-01 14:20:23 +02:00

31 lines
1,004 B
Bash

# Template file for 'olm-python'
pkgname=olm-python
version=3.1.2
revision=1
wrksrc="olm-${version}"
build_wrksrc=python
build_style=python-module
pycompile_module="olm"
hostmakedepends="python-setuptools python3-setuptools python-cffi python3-cffi"
makedepends="python-devel python3-devel libffi-devel olm-devel"
depends="python-cffi python-future python-typing"
short_desc="Implementation of the Double Ratchet cryptographic ratchet (Python2)"
maintainer="Adam Beckmeyer <adam_gpg@thebeckmeyers.xyz>"
license="Apache-2.0"
homepage="https://gitlab.matrix.org/matrix-org/olm"
distfiles="https://gitlab.matrix.org/matrix-org/olm/-/archive/${version}/olm-${version}.tar.bz2"
checksum=d09f9082cdbaf4d95b0a372affdf6129a6b451913831c5915e799877acab6d49
pre_build() {
make include/olm/olm.h
}
olm-python3_package() {
short_desc="${short_desc/Python2/Python3}"
depends="${sourcepkg}>=${version}_${revision} python3-cffi
python3-future"
pycompile_module="olm"
pkg_install() {
vmove ${py3_sitelib}
}
}