Files
ports/core/python2-urllib3/spkgbuild
2019-10-01 22:25:56 +08:00

15 lines
438 B
Plaintext

# description : HTTP library with thread-safe connection pooling and file post support (python2)
# depends : python2
name=python2-urllib3
version=1.25.6
release=1
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz)
md5sum=(a7504a9fcb7ed4ffa482fe098c80b6d4)
build() {
cd ${name#*-}-$version
python2 setup.py build
python2 setup.py install --prefix=/usr --root=$PKG --optimize=1
}