32 lines
1004 B
Bash
32 lines
1004 B
Bash
# Template file for 'olm-python'
|
|
pkgname=olm-python
|
|
version=3.1.3
|
|
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=ed898604eb8ba61b470ce492c0a21994100484e4b6e3e78fb589b16042cb1d13
|
|
|
|
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}
|
|
}
|
|
}
|