diff options
author | Marcell Meszaros | 2022-06-14 10:25:46 +0200 |
---|---|---|
committer | Marcell Meszaros | 2022-06-14 10:25:46 +0200 |
commit | f10e33e363dbfc598f0e40b77232359a51aca142 (patch) | |
tree | c4a1f3811cc59db0ae8623d277883fd91b8c5653 /PKGBUILD | |
parent | f76529d4382110685628bca331b175daa08c27f3 (diff) | |
download | aur-f10e33e363dbfc598f0e40b77232359a51aca142.tar.gz |
add back earlier optdepend: python2-ndg-httpsclient
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -24,7 +24,10 @@ makedepends=('python2-setuptools') # 'python2-pysocks' # 'python2-trustme' # ) -optdepends=('python2-pysocks: SOCKS proxy support') +optdepends=( + 'python2-ndg-httpsclient: HTTPS requests with SNI support' + 'python2-pysocks: SOCKS proxy support' +) _sourcedirname="${_name}-${pkgver}" source=("https://github.com/psf/requests/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz" 'certs.patch') @@ -41,9 +44,10 @@ prepare() { patch -p1 -i "${srcdir}/certs.patch" # Change hashbangs to python2 - sed -e 's+^\(#!/usr/bin/env python\)+\12+' \ - -i 'requests/certs.py' \ - -i 'setup.py' + sed -e 's|#![ ]*/usr/bin/python$|#!/usr/bin/python2|' \ + -e 's|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|' \ + -e 's|#![ ]*/bin/env python$|#!/usr/bin/env python2|' \ + -i $(find . -name '*.py') } build() { |