blob: 3d2a2bdcfe0c7533a83c579d805e24dd1c7a9182 (
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: Butui Hu <hot123tea123@gmail.com>
pkgname=python-cx-oracle
_name=cx_Oracle
pkgver=8.3.0
pkgrel=4
pkgdesc='Python interface to Oracle Database conforming to the Python DB API 2.0 specification'
arch=('x86_64')
url='https://oracle.github.io/python-cx_Oracle'
license=('BSD')
depends=(
oracle-instantclient-basic
python
)
makedepends=(
python-setuptools
)
source=(
"${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
)
sha512sums=('9a2f50b929802311271e5270f118c96968886c6fd3c8677d2e08949d61e9d4d26846bc9e44c674e0bd12a7f8b57bcced9b979f3622a37656e0969ad8ea4e7f70')
build() {
cd "${_name}-${pkgver}"
python setup.py build
}
package() {
cd "${_name}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 "LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
rm -rfv "${pkgdir}/usr/cx_Oracle-doc"
}
# vim:set ts=2 sw=2 et:
|