blob: 32c7e21ad6dc056aa54e2cff620ba20f04923b9a (
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.7.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=('2fa231847489ba6e55521f2836cddc78caefc6d456688af1e91aa30ffde3df39'
'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"
}
|