summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acd401881710bf0aba73c683d2ad82c0e5ebc3fb (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
# Maintainer: Carsten Feuls <archlinux@carstenfeuls.de>
pkgname=awx-git
pkgver=r14744.1.0.0_294_g0da416b1413b
pkgrel=1
pkgdesc="AWX provides a web-based user interface, REST API, and task engine built on top of Ansible."
arch=('any')
url="https://github.com/ansible/awx"
license=('Apache-2.0')
depends=('python2' 'gettext')
options=(!emptydirs)
source=("git+https://github.com/ansible/awx.git")

pkgver() {
  cd awx
  echo "r$(git rev-list --count HEAD).$(git describe --always | sed 's/-/_/g')"
}

build() {
  cd "${srcdir}/awx"
  python2 setup.py build
}

package() {
  cd "${srcdir}/awx"
  python2 setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et:
sha256sums=('SKIP')