summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9ef40839733c404cb38e29cd5fae81a7fd5e211 (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
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>

_pkgname=python-buildbot-pkg
pkgname=python-buildbot-pkg-git
pkgdesc="Utilities and common code for building and testing www plugins."
pkgver=1.3.0.r158.ge79ef99b4
pkgrel=2
arch=('any')
url="https://buildbot.net"
license=("GPL2")
depends=('python-setuptools' 'npm' 'yarn' 'python2')
makedepends=('git')
checkdepends=('python-twisted')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
source=(git+https://github.com/buildbot/buildbot.git)
sha256sums=('SKIP')

pkgver() {
  cd buildbot
  ( set -o pipefail
    git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
  )
}

build() {
  cd buildbot/pkg

  python setup.py build
}

check() {
  cd buildbot/pkg

  python test_buildbot_pkg.py
}

package() {
  cd buildbot/pkg

  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}