void-packages/srcpkgs/olm-python/template
2019-12-24 11:28:29 +01:00

31 lines
1,004 B
Bash

# Template file for 'olm-python'
pkgname=olm-python
version=3.1.4
revision=2
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=eff513cff8e5c7af657e800a2c2dbbdee5be19ee9ce24c5498a2528c4b5f1dc3
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}
}
}