milis/talimatname/genel/p/pyrequests/talimat

26 lines
702 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: İnsanlar için Python HTTP
# URL: https://github.com/requests/requests
# Paketçi: Cihan Alkan
# Gerekler: python-chardet python python3 python-setuptools python3-setuptools pyurllibs
# Grup: kütüphane
isim=pyrequests
surum=2.18.4
devir=1
kaynak=(https://github.com/requests/requests/archive/v2.18.4.tar.gz::requests-$surum.tar.gz)
derle() {
cp -a requests-$surum{,-py3}
cd "$SRC"/requests-$surum
python setup.py build
python setup.py install --root="$PKG" --optimize=1 --skip-build
cd "$SRC"/requests-$surum-py3
python3 setup.py build
python3 setup.py install --root="$PKG" --optimize=1 --skip-build
install -Dm644 LICENSE "$PKG/usr/share/licenses/$isim/LICENSE"
}