blob: dcd0d04eff64366155953ea839e89d9440efb0d6 (
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
35
36
37
|
# Maintainer: yjun <jerrysteve1101 at gmail dot com>
pkgname=python-oss2
_pkgname=aliyun-oss-python-sdk
pkgver=2.18.3
pkgrel=1
pkgdesc="Aliyun OSS SDK for Python."
arch=('any')
url="https://github.com/aliyun/aliyun-oss-python-sdk/"
license=('MIT')
depends=('python-requests'
'python-crcmod'
'python-pycryptodome'
'python-aliyun-python-sdk-core'
'python-aliyun-python-sdk-kms'
'python-six')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/aliyun/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('a89e1706a66ea1bebd4bc725b537a27ae995f37a5234df136c4bfa7ae0e980d1')
prepare() {
cd $_pkgname-$pkgver
sed -i "s|== 2|== 3|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" -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim: ts=2 sw=2 et:
|