Commit b3a683ad authored by Leo's avatar Leo Committed by Natanael Copa

main/py3-pynacl: drop py2

parent f752f227
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-pynacl
_pkgname=${pkgname/py-/}
pkgname=py3-pynacl
_pkgname=pynacl
pkgver=1.3.0
pkgrel=2
pkgdesc="Python binding to the Networking and Cryptography (NaCl) library"
pkgrel=3
pkgdesc="Python3 binding to the Networking and Cryptography (NaCl) library"
url="https://github.com/pyca/pynacl"
arch="all"
license="Apache-2.0"
depends="py-cffi py-six"
makedepends="py-setuptools python2-dev python3-dev libffi-dev"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
depends="py3-cffi py3-six"
makedepends="py3-setuptools python3-dev libffi-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/pyca/$_pkgname/archive/$pkgver.tar.gz
ppc64le-disable-configure-segfaultcheck.patch"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-pynacl" # Backwards compatibility
provides="py-pynacl=$pkgver-r$pkgrel" # Backwards compatibility
check() {
cd "$builddir"
python2 setup.py check
python3 setup.py check
}
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
replaces="$pkgname"
depends="${depends//py-/py2-}"
_py python2
}
_py3() {
depends="${depends//py-/py3-}"
_py python3
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="815c31a2069cbee1091d7e0ebf0b5572875c4a537311af561b5bce0b9d8051028e367a516b46481453d9780e60e9e7e2a4640d320164059c3974b0319d1cf96d py-pynacl-1.3.0.tar.gz
sha512sums="815c31a2069cbee1091d7e0ebf0b5572875c4a537311af561b5bce0b9d8051028e367a516b46481453d9780e60e9e7e2a4640d320164059c3974b0319d1cf96d py3-pynacl-1.3.0.tar.gz
a96f649bb7d1552612f46668ce1c27dd4bb62e0e6459a02e9769a967c54ebe8467c3e8c515789a65838f5c55c96f381fabea4cc07fde8857a65f7dafa062c07c ppc64le-disable-configure-segfaultcheck.patch"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment