# Maintainer: yjun pkgname=python-cos-python-sdk-v5 _pkgname=${pkgname/python-} pkgver=1.8.1 pkgrel=1 pkgdesc="腾讯云COSV5Python SDK, 目前可以支持Python2.6与Python2.7以及Python3.x" arch=('any') url="https://github.com/tencentyun/cos-python-sdk-v5" license=('MIT') depends=('python-requests' 'python-six' 'python-dicttoxml' 'python-setuptools') conflicts=("${pkgname}-git") provides=("${pkgname}-git") source=("https://github.com/tencentyun/${_pkgname}/archive/V${pkgver}.tar.gz") sha256sums=('SKIP') build() { cd $_pkgname-$pkgver python setup.py build } package() { cd $_pkgname-$pkgver python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" } # vim: ts=2 sw=2 et: