blob: 8d8f656a7261ad36272c7d6e9b739d28178beb32 (
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
|
# Maintainer: Matthias gatto <matthias.gatto@outscale.com>
# Reference: PKGBUILD(5)
pkgname=osc-cli-git
pkgver=v1.5.0.r14.g04b02c8
pkgrel=1
pkgdesc='Outscale CLI'
arch=('any')
url='https://github.com/outscale/osc-cli'
license=(BSD)
pkgver() {
cd "${srcdir}/osc-cli"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
makedepends=('python-setuptools')
depends=(python-fire python-requests python-xmltodict)
source=("git://github.com/outscale/osc-cli.git")
sha256sums=("SKIP")
build() {
cd "${srcdir}/osc-cli"
python ./setup.py build
}
package() {
cd "${srcdir}/osc-cli"
python ./setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -D "${srcdir}/osc-cli/LICENSE" "$pkgdir/usr/share/licenses/osc-cli/LICENSE"
}
|