32 lines
1020 B
Bash
32 lines
1020 B
Bash
# Template file for 'python-iwlib'
|
|
pkgname=python-iwlib
|
|
version=1.6.2
|
|
revision=1
|
|
wrksrc="${pkgname/python-//}-${version}"
|
|
build_style=python-module
|
|
pycompile_module="iwlib"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel wireless_tools-devel libffi-devel"
|
|
depends="python wireless_tools"
|
|
short_desc="Python2 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=7496bcc3f7abb9b23071f83a86b4386fab41852d7ecc7aee05b6e42b832606f3
|
|
nocross=https://build.voidlinux.org/builders/aarch64-musl_builder/builds/11458/steps/shell_3/logs/stdio
|
|
|
|
do_check() {
|
|
python3 test/test_imports.py
|
|
python2 test/test_imports.py
|
|
}
|
|
|
|
python3-iwlib_package() {
|
|
pycompile_module="iwlib"
|
|
depends="python3 wireless_tools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|