mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py3-bluez
|
|
_pkgname=pybluez
|
|
pkgver=0.23
|
|
pkgrel=5
|
|
pkgdesc="Python API for the BlueZ bluetooth stack"
|
|
url="https://github.com/pybluez/pybluez"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="python3-dev py3-setuptools bluez-dev"
|
|
checkdepends="py3-pytest"
|
|
options="!check"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz
|
|
setuptools59.patch
|
|
py3.11.patch
|
|
"
|
|
builddir="$srcdir/$_pkgname-$pkgver"
|
|
|
|
replaces="py-bluez" # Backwards compatibility
|
|
|
|
build() {
|
|
2to3 -w bluetooth
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
51a1f9bbb8f473c616486edc8e85f57a0113b8c63db7ef0360d72ee9d5f6f7b56fffeb97dbe8b93c658aacea192b1912098ca21dbe74e1b7104695c4c9a8e130 py3-bluez-0.23.tar.gz
|
|
61d654b3c0c77e4680a8887e2b6fe8a85f36160df417481b7394a96c0953a4362f402b6469bca912dff6346f82528f4fb3dcd1e271d7e12bed2c7070f2283885 setuptools59.patch
|
|
94b699b38100883a3aba39fa574b3437dd6c8a300a52bb3bd8b4c0d444c2c62e20f47baed7c89233121d08fdd562acd309c50475f1900fb2b8bd494dd17cae8d py3.11.patch
|
|
"
|