39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Template file for 'python3-etebase'
|
|
pkgname=python3-etebase
|
|
version=0.31.5
|
|
revision=6
|
|
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 <darkiridiumghost@gmail.com>"
|
|
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
|
|
# openssl3
|
|
cargo update --package once_cell:1.4.0 --precise 1.5.2
|
|
cargo update --package openssl-sys:0.9.58 --precise 0.9.91
|
|
cargo update --package openssl:0.10.30 --precise 0.10.56
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|