aboutsummaryrefslogtreecommitdiffstats
path: root/community/buildbot/APKBUILD
blob: 1076006f059a0477898fedd21ffb111f7b2e1179 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=buildbot
pkgver=0.9.4
pkgrel=0
pkgdesc="Continuous integration testing framework"
url="http://buildbot.net/"
arch="noarch"
license="GPLv2"
depends="python2 py-twisted py-simplejson py2-sqlalchemy 
	py2-pysqlite py-jinja2 py2-sqlalchemy-migrate
	py-dateutil py-setuptools"
depends_dev=""
makedepends="python2-dev"
install="${pkgname}.pre-install"
BUILDBOT_USER=buildbot
BUILDBOT_GROUP=buildbot
pkgusers="$BUILDBOT_USER"
pkggroups="$BUILDBOT_GROUP"
subpackages=""
source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-${pkgver/_/}.tar.gz
	buildmaster.initd
	buildmaster.confd"

builddir="$srcdir"/$pkgname-${pkgver/_/}

prepare() {
	default_prepare || return 1
}

build() {
	cd "$builddir"
	python2 setup.py build || return 1
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" \
		|| return 1
	install -D -m 755 \
	        "$srcdir"/buildmaster.initd \
	        "$pkgdir"/etc/init.d/buildmaster \
		|| return 1
	install -D -m 644 \
	        "$srcdir"/buildmaster.confd \
	        "$pkgdir"/etc/conf.d/buildmaster \
		|| return 1
	install -d -o $BUILDBOT_USER -g $BUILDBOT_GROUP \
	        "$pkgdir"/var/lib/buildmaster \
		|| return 1
}

sha512sums="938a94192560b989a277d9650c50781d7e7c116bc5e2010ccb2e655df757de0ee254369531b2f432c835c0285c724e52d999a393d0ce1b104d4b9dcc5c6687da  buildbot-0.9.4.tar.gz
2e65d22f1b94433ba11839fb3434d072f9ff8132396b03fdcdb3b437778679d1699534296fbb851d2661a3a7a0bce4ef1f94c49e7910419557e4055f2ed1a4d5  buildmaster.initd
d9339c30d3a92e92b41b0e3139ec89ecbd1460b0e4ee6c6fe2560c4307b2eb3f29b838c2f2312b9c7049bd95eaf652d09039227c691af805bc25a36999ec1840  buildmaster.confd"