# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python2-pynacl _pkgname=PyNaCl pkgver=1.3.0 pkgrel=4 pkgdesc='Python binding to the Networking and Cryptography (NaCl) library.' url='https://pypi.org/project/PyNaCl/#files' arch=('x86_64' 'aarch64') license=('Apache') depends=('python2' 'python2-six' 'python2-cffi' 'libsodium') makedepends=('python2-setuptools') source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('1762d7d9add6ca59ce83e394071861f78f27d0f06ad1481255ebb66023186127e1a67b49a2c2f51bcbd97bdd151a3a2adea099c47c2a9f456dda5e3b1508af50') build() { cd "$_pkgname-$pkgver" python2 setup.py build } package() { cd "$_pkgname-$pkgver" python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build }