mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added extra/python-protobuf (#2041)
added a note to protobuf package to keep both packages updated in lockstep Co-authored-by: BrainDamage <braindamage@archlinux.org>
This commit is contained in:
parent
1648177adb
commit
af81df1c4a
3 changed files with 50 additions and 0 deletions
|
@ -10,11 +10,15 @@
|
|||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - remove makedpends on bazel
|
||||
# - remove python package
|
||||
# ALARM: BrainDamage <braindamage@archlinux.org>
|
||||
# - re-enable python package
|
||||
# - split off python-protobuf to its own PKGBUILD file
|
||||
|
||||
pkgbase='protobuf'
|
||||
pkgname=('protobuf')
|
||||
pkgver=27.2
|
||||
pkgrel=1
|
||||
# Note: python-protobuf needs to be updated alongside this package to the same version
|
||||
# Note: libphonenumber needs a rebuild for every version bump
|
||||
pkgdesc="Protocol Buffers - Google's data interchange format"
|
||||
arch=('x86_64')
|
||||
|
|
17
extra/python-protobuf/.SRCINFO
Normal file
17
extra/python-protobuf/.SRCINFO
Normal file
|
@ -0,0 +1,17 @@
|
|||
pkgbase = python-protobuf
|
||||
pkgdesc = Protocol Buffers - Google's data interchange format
|
||||
pkgver = 27.2
|
||||
pkgrel = 1
|
||||
url = https://developers.google.com/protocol-buffers/
|
||||
arch = aarch64
|
||||
arch = armv7h
|
||||
license = BSD
|
||||
makedepends = python-build
|
||||
makedepends = python-installer
|
||||
makedepends = python-wheel
|
||||
depends = python
|
||||
depends = protobuf=27.2
|
||||
source = https://files.pythonhosted.org/packages/source/p/protobuf/protobuf-5.27.2.tar.gz
|
||||
sha256sums = f3ecdef226b9af856075f28227ff2c90ce3a594d092c39bee5513573f25e2714
|
||||
|
||||
pkgname = python-protobuf
|
29
extra/python-protobuf/PKGBUILD
Normal file
29
extra/python-protobuf/PKGBUILD
Normal file
|
@ -0,0 +1,29 @@
|
|||
# ALARM: BrainDamage <braindamage@archlinux.org>
|
||||
# - use pypi tarball as source
|
||||
# - use normal python toolchain to build
|
||||
|
||||
pkgname=python-protobuf
|
||||
_basename=protobuf
|
||||
pkgver=27.2
|
||||
_ver=5
|
||||
pkgrel=1
|
||||
pkgdesc="Protocol Buffers - Google's data interchange format"
|
||||
arch=('aarch64' 'armv7h')
|
||||
url='https://developers.google.com/protocol-buffers/'
|
||||
license=('BSD')
|
||||
depends=('python' "protobuf=${pkgver}")
|
||||
makedepends=('python-build' 'python-installer' 'python-wheel')
|
||||
source=("https://files.pythonhosted.org/packages/source/${_basename::1}/${_basename}/${_basename}-${_ver}.${pkgver}.tar.gz")
|
||||
sha256sums=('f3ecdef226b9af856075f28227ff2c90ce3a594d092c39bee5513573f25e2714')
|
||||
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue