blob: d05bbe88e878c7c0e2c06460d6acfd54e6235b33 (
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
40
41
42
43
|
# Maintainer: Morgenstern <charles [at] charlesbwise [dot] com>
# Contributor: Slithery <aur [at] slithery [dot] uk>
pkgname=linode-cli
pkgver=3.1.3
pkgrel=1
pkgdesc="Linode API wrapper"
arch=('any')
url="https://github.com/linode/linode-cli"
license=('BSD')
makedepends=('python-wheel'
'python2-wheel')
depends=('python-colorclass'
'python2-colorclass'
'python-terminaltables'
'python2-terminaltables'
'python-requests'
'python2-requests'
'python-yaml'
'python2-yaml'
'python2-enum34')
replaces=('linode-cli-dev')
install="${pkgname}".install
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/linode/linode-cli/archive/${pkgver}.tar.gz"
'enum34-extra-requires.patch')
sha256sums=('2cf069401c4f344cd8cefd853ca4b942fea07027e596fa09b7090ca32eefd4ec'
'3c05e163748ec607c3f6d62587e04911af2e593e25635c7acef39cd2d03f9f2e')
prepare() {
cd "${pkgname}-${pkgver}"
patch --strip=2 --input="${srcdir}/enum34-extra-requires.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"
}
|