blob: 2f23ae81f9e3b7badcdcaea88063c3a794e506bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Andrew O'Neill <andrew at haunted dot sh>
pkgname=python-oci
_pyname=oci-python-sdk
pkgver=2.140.0
pkgrel=1
pkgdesc='Python SDK for Oracle Cloud Infrastructure'
arch=('x86_64')
url="https://github.com/oracle/${_pyname}"
license=('Apache-2.0 OR UPL-1.0')
depends=('python' 'python-dateutil' 'python-certifi' 'python-circuitbreaker' 'python-cryptography' 'python-pyopenssl' 'python-pytz')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('8dfc6b3243912b2d9ff1fc415f328246eb12f96879f4dd225ea84949442ce0b7')
prepare() {
cd "${_pyname}-${pkgver}"
sed -i -r 's/(==|>|<).*"/"/g' setup.py
sed -i '/configparser/d' setup.py
}
build() {
cd "${_pyname}-${pkgver}"
python setup.py build
}
package() {
cd "${_pyname}-$pkgver"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|