blob: d5ef08fce9e01c0b0e04a17157c18de909618194 (
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
38
39
|
# Maintainer: Morgenstern <charles [at] charlesbwise [dot] com>
# Contributor: Slithery <aur [at] slithery [dot] uk>
pkgname=linode-cli
pkgver=5.6.0
pkgrel=1
pkgdesc="Linode API wrapper"
arch=('any')
url="https://github.com/${pkgname%%-cli}/${pkgname}"
license=('BSD')
depends=('python-colorclass'
'python-requests'
'python-terminaltables'
'python-yaml')
optdepends=('python-boto: Object Storage plugin')
makedepends=('python-setuptools'
'python-wheel')
replaces=('linode-cli-dev')
install="${pkgname}".install
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname%%-cli}/${pkgname}/archive/${pkgver}.tar.gz"
no-python2.patch)
sha256sums=('6fad104bf96f4819e5706d89ec0541d2d903f57b3aa00f9f374fe453216638d9'
'7a3f1e454ffac21db74ad1e1b8575f4246566fb25966b89a2e30fa8215dd8c13')
prepare() {
cd "${pkgname}-${pkgver}"
patch --strip=1 --input="${srcdir}/no-python2.patch"
}
build() {
cd "${pkgname}-${pkgver}"
make build
}
package() {
cd "${pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|