blob: 3d2fe2167259795769026534aa82a413c50ae9b4 (
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.5.3
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=('dc5a4c0c91efc8896b4814bb8f7097013252ccb1f4e6e6d02df49de82d1bf572'
'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"
}
|