python3-iwlib: cross-compile

Also bump revision because missing dependencies.
This commit is contained in:
Đoàn Trần Công Danh 2020-02-26 22:33:54 +07:00 committed by Helmut Pozimski
parent dd0f77c55c
commit e1c1d565b9

View file

@ -1,20 +1,31 @@
# Template file for 'python3-iwlib'
pkgname=python3-iwlib
version=1.7.0
revision=2
wrksrc="${pkgname/python3-/}-${version}"
revision=3
wrksrc="iwlib-${version}"
build_style=python3-module
pycompile_module="iwlib"
hostmakedepends="python3-setuptools"
hostmakedepends="python3-setuptools python3-cffi"
makedepends="python3-devel wireless_tools-devel libffi-devel"
depends="python3 wireless_tools"
depends="python3-cffi wireless_tools"
short_desc="Python Iwlib wrapper for interacting with wireless devices"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://github.com/nathan-hoad/python-iwlib"
distfiles="${PYPI_SITE}/i/iwlib/iwlib-${version}.tar.gz"
checksum=a805f6597a70ee3001aba8f039fb7b2dcb75dc15c4e7852f5594fd6379196da1
nocross=https://build.voidlinux.org/builders/aarch64-musl_builder/builds/11458/steps/shell_3/logs/stdio
do_patch() {
# _iwlib_build.py try to load the shared object
# to verify if it's built correctly.
# Comment it out and restore it back after build
vsed -i iwlib/_iwlib_build.py \
-e '/ffibuilder\.verify/s/^/# /'
}
post_install() {
vsed -i ${DESTDIR}/${py3_sitelib}/iwlib/_iwlib_build.py \
-e '/ffibuilder\.verify/s/^# //'
}
do_check() {
python3 test/test_imports.py