# Maintainer: Andrew O'Neill pkgname=oci-cli pkgver=3.40.1 pkgrel=1 pkgdesc='Command line interface for Oracle Cloud Infrastructure' arch=('x86_64') url="https://github.com/oracle/${pkgname}" license=('Apache-2.0 OR UPL-1.0') depends=('python' 'python-oci' 'python-arrow' 'python-certifi' 'python-click' 'python-dateutil' 'python-cryptography' 'python-pyopenssl' 'python-jmespath' 'python-terminaltables' 'python-idna' 'python-prompt_toolkit' 'python-pytz' 'python-six' 'python-retrying' 'python-wcwidth' 'python-yaml') makedepends=('python-setuptools') optdepends=('python-cx_oracle: Used by the database service') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('4bf71b5bdcfc370bccc85f2662dbef1d77ba9b61158c0e3e2758b85fa5626126') prepare() { cd "${pkgname}-${pkgver}" sed -i -r "s/(==|>|<).*[0-9].*'/'/g" setup.py } 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" }