summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6d03752ef0f5f812e75dc54cb3446c34e5eb617 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com>
# Forked from aur/buildbot. Original contributors:
# Contributor: xRemaLx <anton.komolov@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgbase=buildbot-www-git
pkgname=('python-buildbot-www-git' 'python-buildbot-waterfall-view-git'
         'python-buildbot-console-view-git' 'python-buildbot-grid-view-git'
         'python-buildbot-wsgi-dashboards-git' 'python-buildbot-badges-git'
         )
pkgver=1.3.0.r2.g95fc42ba3
pkgrel=1
arch=('any')
url="https://buildbot.net"
license=("GPL2")
makedepends=('git' 'buildbot-git' 'python-buildbot-pkg-git' 'python-mock' 'npm' 'yarn' 'python2')
source=(git+https://github.com/buildbot/buildbot.git
        cairosvg2.patch)
sha256sums=('SKIP'
            'efb460cb040cfd2438d63df51cc7ffd93444dd9d6e1b172f870f4ffce5bafda8')

pkgver() {
  cd buildbot
  ( set -o pipefail
    git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd buildbot

  patch -Np1 -i ../cairosvg2.patch
}

package_python-buildbot-www-git() {
  depends=('buildbot-git')
  pkgdesc="Buildbot UI"

  cd buildbot/www/base
  python setup.py install --root="$pkgdir" --optimize=1
}

package_python-buildbot-waterfall-view-git() {
  depends=('buildbot-git')
  pkgdesc="Buildbot Waterfall View plugin"

  cd buildbot/www/waterfall_view
  python setup.py install --root="$pkgdir" --optimize=1
}

package_python-buildbot-console-view-git() {
  depends=('buildbot-git')
  pkgdesc="Buildbot Console View plugin"

  cd buildbot/www/console_view
  python setup.py install --root="$pkgdir" --optimize=1
}

package_python-buildbot-grid-view-git() {
  depends=('buildbot-git')
  pkgdesc="Buildbot Grid View plugin"

  cd buildbot/www/grid_view
  python setup.py install --root="$pkgdir" --optimize=1
}

package_python-buildbot-wsgi-dashboards-git() {
  depends=('buildbot-git')
  pkgdesc="Buildbot plugin to integrate flask or bottle dashboards to buildbot UI"

  cd buildbot/www/wsgi_dashboards
  python setup.py install --root="$pkgdir" --optimize=1
}

package_python-buildbot-badges-git() {
  depends=('buildbot-git' 'python-klein' 'python-cairosvg' 'python-cairocffi' 'python-jinja')
  pkgdesc="Buildbot badges"

  cd buildbot/www/badges
  python setup.py install --root="$pkgdir" --optimize=1
}