mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/py3-wifi: build with gpep517
This commit is contained in:
parent
c5f9e7103e
commit
89c0b4d8c2
@ -3,32 +3,38 @@
|
|||||||
pkgname=py3-wifi
|
pkgname=py3-wifi
|
||||||
_pkgname=wifi
|
_pkgname=wifi
|
||||||
pkgver=0.3.8
|
pkgver=0.3.8
|
||||||
pkgrel=6
|
pkgrel=7
|
||||||
pkgdesc="Command line tool and library wrappers for network interfaces"
|
pkgdesc="Command line tool and library wrappers for network interfaces"
|
||||||
options="!check" # Tests only on GitHub tarball that are on 0.3.5
|
|
||||||
url="https://github.com/rockymeza/wifi"
|
url="https://github.com/rockymeza/wifi"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
depends="python3 py3-pbkdf2 py3-setuptools wireless-tools"
|
depends="python3 py3-pbkdf2 py3-setuptools wireless-tools"
|
||||||
|
makedepends="py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
||||||
fix-iwlist-path.patch
|
fix-iwlist-path.patch
|
||||||
"
|
"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
options="!check" # Tests only on GitHub tarball that are on 0.3.5
|
||||||
|
|
||||||
replaces="py-wifi" # Backwards compatibility
|
replaces="py-wifi" # Backwards compatibility
|
||||||
provides="py-wifi=$pkgver-r$pkgrel" # Backwards compatibility
|
provides="py-wifi=$pkgver-r$pkgrel" # Backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
|
|
||||||
# Avoid conflict with tlp
|
# Avoid conflict with tlp
|
||||||
mv "$pkgdir"/usr/bin/wifi "$pkgdir"/usr/bin/pywifi
|
mv "$pkgdir"/usr/bin/wifi "$pkgdir"/usr/bin/pywifi
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="649b9ca85fababa8275b4c03ce229d474da8a89c19e1467b9e3a5a7be2e2a975c142a7851226c3285d3d071ee1688adafbe835efd4f9bcd2295309b9e039da81 wifi-0.3.8.tar.gz
|
sha512sums="
|
||||||
7b9d85eb9ac499319bb51d34ed44c6c2fe2431eb0fbf4e83fd30c3805181f90a9fc22fb24d7361c31ad140cf73e62352e28276210fc7d9f85a6331f5eeb0513f fix-iwlist-path.patch"
|
649b9ca85fababa8275b4c03ce229d474da8a89c19e1467b9e3a5a7be2e2a975c142a7851226c3285d3d071ee1688adafbe835efd4f9bcd2295309b9e039da81 wifi-0.3.8.tar.gz
|
||||||
|
7b9d85eb9ac499319bb51d34ed44c6c2fe2431eb0fbf4e83fd30c3805181f90a9fc22fb24d7361c31ad140cf73e62352e28276210fc7d9f85a6331f5eeb0513f fix-iwlist-path.patch
|
||||||
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user