Open molaeiali opened 4 days ago
Maybe it can be built like this?
pkgname=python-proton-vpn-local-agent
pkgver=1.0.0
pkgrel=1
pkgdesc="Proton VPN local agent written in Rust"
arch=('x86_64')
url="https://github.com/ProtonVPN/local-agent-rs"
license=("GPL3")
groups=("ProtonVPN")
depends=('python')
makedepends=('cargo')
source=("https://github.com/ProtonVPN/local-agent-rs/archive/01332194d217d91a514ecaebcdfbfa3d21ccd1ed.tar.gz")
sha256sums=('SKIP')
prepare() {
mv "$srcdir/local-agent-rs-01332194d217d91a514ecaebcdfbfa3d21ccd1ed" "$srcdir/local-agent-rs-${pkgver}"
}
build() {
cd "$srcdir/local-agent-rs-${pkgver}/python-proton-vpn-local-agent"
cargo build --release
}
package() {
mkdir -p "$pkgdir/usr/lib/python3.12/site-packages/proton/vpn"
cp "$srcdir/local-agent-rs-${pkgver}/python-proton-vpn-local-agent/target/release/libpython_proton_vpn_local_agent.so" "$pkgdir/usr/lib/python3.12/site-packages/proton/vpn/local_agent.abi3.so"
}
Is there any instructions on how to build and what are the dependencies?