Files
ports/main/python2-pycryptodome/spkgbuild
2021-05-12 08:11:10 +08:00

16 lines
380 B
Plaintext

# description : Cryptographic library for Python (python2)
# depends : python2
name=python2-pycryptodome
_name=${name#*-}
_n=${_name%${_name#?}}
version=3.9.7
release=1
source="https://files.pythonhosted.org/packages/source/$_n/${name#*-}/${name#*-}-$version.tar.gz"
build() {
cd ${name#*-}-$version
python2 setup.py build
python2 setup.py install --root=$PKG --optimize=1
}