# Template file for 'olm' pkgname=olm version=2.2.2 revision=1 build_style=gnu-makefile make_check_target=test hostmakedepends="python-devel python3-devel" makedepends="python-devel python3-devel" short_desc="An implementation of the Double Ratchet cryptographic ratchet" maintainer="Adam Beckmeyer " license="Apache-2.0" homepage="https://git.matrix.org/git/olm/about/" distfiles="https://git.matrix.org/git/olm/snapshot/${pkgname}-${version}.tar.gz" checksum=0c00127e6c4fcb4ec2cb3f78805a9218551b878f75441a1bc282b94c9fdd7b9a post_configure() { # -O0 prevents _FORTIFY_SOURCE working for _f in $(find ${wrksrc} -name Makefile); do sed -i $_f -e "s; -O0;;" done } do_install() { make DESTDIR=${DESTDIR} PREFIX=/usr install for pysl in $py2_sitelib $py3_sitelib; do mkdir -p ${DESTDIR}${pysl} cp -r ${wrksrc}/python/olm ${DESTDIR}${pysl} done } olm-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/*.so } } olm-python_package() { noarch=yes short_desc+=" - python bindings" depends="${sourcepkg}>=${version}_${revision} python" pycompile_module=olm pkg_install() { vmove ${py2_sitelib} } } olm-python3_package() { noarch=yes short_desc+=" - python3 bindings" depends="${sourcepkg}>=${version}_${revision} python3" pycompile_module=olm pkg_install() { vmove ${py3_sitelib} } }