summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eca9467a59076824e067dbb302a8c0787dd8bcf4 (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
44
45
46
# Maintainer: Matthias gatto <matthias.gatto@outscale.com>
# Reference: PKGBUILD(5)

pkgname=osc-tui-git
pkgver=r487.4843a6b
pkgrel=1
pkgdesc='Outscale Text User Interface'

arch=('any')
url='https://github.com/outscale-dev/osc-tui'
license=(BSD)

makedepends=('python-setuptools')
depends=(osc-sdk-python python-pyperclip autopep8 python-diagrams)

pkgver() {
  cd "${srcdir}/osc-tui"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

source=("git+https://github.com/outscale-dev/osc-tui.git")
sha256sums=("SKIP")

build() {
	cd "${srcdir}/osc-tui"
	git submodule update --init
	cd npyscreen # we use our own fork of npyscreen (oscscreen), not compatible with upstream on
	python  ./setup.py build
	cd ..
	cd osc-diagram
	python  ./setup.py build
	cd ..
	python ./setup.py build
}

package() {
	cd "${srcdir}/osc-tui"
	cd npyscreen # we use our own fork of npyscreen (oscscreen), not compatible with upstream on
	python  ./setup.py install --root="$pkgdir" --optimize=1 --skip-build
	cd ..
	cd osc-diagram
	python  ./setup.py install --root="$pkgdir" --optimize=1 --skip-build
	cd ..
	python  ./setup.py install --root="$pkgdir" --optimize=1 --skip-build
	install -D "${srcdir}/osc-tui/LICENSE" "$pkgdir/usr/share/licenses/osc-tui/LICENSE"
}