summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2076ff71b14f7f3b6d5ddd28d40d41ab0c6cd268 (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
# Maintainer: George Angelopoulos <george@usermod.net>

pkgname=hotsos-git
pkgver=1
pkgrel=1
pkgdesc='Software analysis toolkit'
arch=('any')
url='https://github.com/canonical/hotsos'
license=('Apache')
depends=('python-click'
         'python-progress'
         'python-simplejson'
         'python-cryptography'
         'python-pyaml')
makedepends=('python-setuptools')
source=("$pkgname::git+https://github.com/canonical/hotsos")
md5sums=('SKIP')

build() {
  cd "${pkgname}"
  python setup.py build
}

package() {
  cd "${pkgname}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -d "${pkgdir}/etc/hotsos/defs"
  cp -r defs/* "${pkgdir}/etc/hotsos/defs"
}
# vim:set ts=2 sw=2 et: