# Template file for 'python3-etebase' pkgname=python3-etebase version=0.31.5 revision=3 build_style=python3-module build_helper="rust" hostmakedepends="python3-setuptools-rust python3-wheel cargo pkg-config" makedepends="libsodium libsodium-devel openssl-devel" depends="python3-msgpack" short_desc="Python library for Etebase" maintainer="DragonGhost7 " license="BSD-3-Clause" homepage="https://github.com/etesync/etebase-py/" changelog="https://raw.githubusercontent.com/etesync/etebase-py/master/ChangeLog.md" distfiles="https://github.com/etesync/etebase-py/archive/refs/tags/v${version}.tar.gz" checksum=3f372b18cc518e04788ca553fb05989f77f393d041688a44f69b7b5b56d71048 # Tests require a locally running server make_check=no if [ "$CROSS_BUILD" ]; then makedepends+=" rust-std" fi pre_build() { # fixes an indexmap error when cross compiling cargo update --package autocfg:1.0.0 --precise 1.1.0 # fixes error on aarch64 due to memory layout issues # https://github.com/rust-lang/socket2/commit/d2c15de84991947b6577bea92763efe0a2eecf28 cargo update --package socket2:0.3.12 --precise 0.3.19 } post_install() { vlicense LICENSE }