# Maintainer: Andrew O'Neill pkgname=oci-cli pkgver=2.5.5 pkgrel=1 pkgdesc='Command line interface for Oracle Cloud Infrastructure' arch=('x86_64') url='https://github.com/oracle/oci-cli' license=('Apache') depends=('python' 'python-oci' 'python-arrow' 'python-certifi' 'python-click' 'python-dateutil' 'python-cryptography' 'python-pyopenssl' 'python-jmespath' 'python-terminaltables' 'python-httpsig_cffi' 'python-idna' 'python-pytz' 'python-requests' 'python-six' 'python-retrying' 'python-yaml' 'python-cx_oracle-git') makedepends=('python-setuptools') source=("${url}/archive/v${pkgver}.tar.gz" "${pkgname}.patch") sha256sums=('e15f68d96cc334151fb345d0079aa14e62ffce10b8280fd6196afaeb9fff109f' '2c377ec8de55f2c4ce43332668278f989c5dc07b6ab448036c589f2d582c99f3') prepare() { cd "${pkgname}-${pkgver}" patch -p1 -i ../${pkgname}.patch } 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.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }