# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python2-protobuf _pkgname=protobuf pkgver=3.17.3 pkgrel=1 pkgdesc='Protocol Buffers.' url='https://pypi.org/project/protobuf/#files' arch=('x86_64' 'aarch64') license=('MIT') depends=('python2' 'python2-six' 'protobuf-c' 'gcc-libs' 'zlib') makedepends=('python2-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('7ac0e788672c4c6429a257715411a5c4092fc15ee4f05abca8a327b0631471d94abdc27250f500cea37ba0b8c788ec61cbecc8d5db246bfa3f053036662977cd') build() { cd "$_pkgname-$pkgver" python2 setup.py build --cpp_implementation } package() { cd "$_pkgname-$pkgver" python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build \ --cpp_implementation }