mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
29 lines
933 B
Bash
29 lines
933 B
Bash
# ALARM: BrainDamage <braindamage@archlinux.org>
|
|
# - use pypi tarball as source
|
|
# - use normal python toolchain to build
|
|
|
|
pkgname=python-protobuf
|
|
_basename=protobuf
|
|
pkgver=28.0
|
|
_ver=5
|
|
pkgrel=2
|
|
pkgdesc="Protocol Buffers - Google's data interchange format"
|
|
arch=('aarch64' 'armv7h')
|
|
url='https://developers.google.com/protocol-buffers/'
|
|
license=('BSD-3-Clause')
|
|
depends=('python' "protobuf=${pkgver}")
|
|
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
|
|
source=("https://files.pythonhosted.org/packages/source/${_basename::1}/${_basename}/${_basename}-${_ver}.${pkgver}.tar.gz")
|
|
sha256sums=('dde74af0fa774fa98892209992295adbfb91da3fa98c8f67a88afe8f5a349add')
|
|
|
|
|
|
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
|
|
}
|