2024-07-03 00:32:28 +00:00
|
|
|
# ALARM: BrainDamage <braindamage@archlinux.org>
|
|
|
|
# - use pypi tarball as source
|
|
|
|
# - use normal python toolchain to build
|
|
|
|
|
|
|
|
pkgname=python-protobuf
|
|
|
|
_basename=protobuf
|
2024-11-10 13:26:22 +00:00
|
|
|
pkgver=28.3
|
2024-07-03 00:32:28 +00:00
|
|
|
_ver=5
|
2024-11-10 13:26:22 +00:00
|
|
|
pkgrel=1
|
2024-07-03 00:32:28 +00:00
|
|
|
pkgdesc="Protocol Buffers - Google's data interchange format"
|
|
|
|
arch=('aarch64' 'armv7h')
|
|
|
|
url='https://developers.google.com/protocol-buffers/'
|
2024-09-12 18:10:53 +00:00
|
|
|
license=('BSD-3-Clause')
|
2024-07-03 00:32:28 +00:00
|
|
|
depends=('python' "protobuf=${pkgver}")
|
2024-07-03 00:48:36 +00:00
|
|
|
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
|
2024-07-03 00:32:28 +00:00
|
|
|
source=("https://files.pythonhosted.org/packages/source/${_basename::1}/${_basename}/${_basename}-${_ver}.${pkgver}.tar.gz")
|
2024-11-10 13:26:22 +00:00
|
|
|
sha256sums=('64badbc49180a5e401f373f9ce7ab1d18b63f7dd4a9cdc43c92b9f0b481cef7b')
|
2024-07-03 00:32:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_basename}-${_ver}.${pkgver}"
|
|
|
|
export PYTHONHASHSEED=0
|
|
|
|
python -m build --wheel --no-isolation
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${_basename}-${_ver}.${pkgver}"
|
|
|
|
python -m installer --compile-bytecode 1 --destdir="${pkgdir}" dist/*.whl
|
|
|
|
}
|