# Maintainer: Andrew O'Neill pkgname=oci-cli pkgver=3.7.0 pkgrel=1 pkgdesc='Command line interface for Oracle Cloud Infrastructure' arch=('x86_64') url="https://github.com/oracle/${pkgname}" license=('Apache') depends=('python' 'python-oci' 'python-arrow' 'python-certifi' 'python-click' 'python-dateutil' 'python-cryptography' 'python-pyopenssl' 'python-jmespath' 'python-terminaltables' 'python-idna' 'python-pytz' 'python-six' 'python-retrying' '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=('e6ff9194342402c8c71c73f675c2b48828f3bf46039a907bbd989dd2205e4b45') prepare() { cd "${pkgname}-${pkgver}" sed -i 's/profile == Sentinel(DEFAULT_PROFILE)/profile == str(Sentinel(DEFAULT_PROFILE))/' src/oci_cli/cli_root.py sed -i -r "s/(==|>|<).*'/'/g" setup.py sed -i '/configparser/d' 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" }