mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
54 lines
1.4 KiB
Text
54 lines
1.4 KiB
Text
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=py3-pycryptodome
|
|
pkgver=3.17.0
|
|
pkgrel=0
|
|
pkgdesc="Self-contained cryptographic library"
|
|
url="https://www.pycryptodome.org"
|
|
arch="all"
|
|
license="BSD-2-Clause Unlicense"
|
|
depends="gmp"
|
|
makedepends="python3-dev py3-setuptools"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v$pkgver.tar.gz"
|
|
subpackages="${pkgname}x:pycryptodomex"
|
|
builddir="$srcdir"/pycryptodome-$pkgver
|
|
_xbuilddir="$srcdir"/pycryptodomex-$pkgver
|
|
|
|
replaces="py-pycryptodome py3-crypto" # Backwards compatibility
|
|
provides="py-pycryptodome=$pkgver-r$pkgrel py3-crypto=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cp -r "$builddir" "$_xbuilddir"
|
|
touch "$_xbuilddir/.separate_namespace"
|
|
}
|
|
|
|
build() {
|
|
# pycryptodome - "Crypto" namespace (PyCrypto compatible)
|
|
python3 setup.py --quiet build
|
|
|
|
# pycryptodomex - "Cryptodome" namespace
|
|
cd "$_xbuilddir"
|
|
python3 setup.py --quiet build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
|
|
cd "$_xbuilddir"
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py --quiet install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
pycryptodomex() {
|
|
cd "$_xbuilddir"
|
|
python3 setup.py --quiet install --skip-build --root="$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
c0a0754c0dd1d8138e8dd27c034e3f3469237eb5f205d86d0c5e2377fd7672c6ed0df9717292a73d380daaabe88c3be80b575ca1149f4c70f08d82aed0d4b39c py3-pycryptodome-3.17.0.tar.gz
|
|
"
|