void-packages/srcpkgs/buildbot/template
2016-10-14 23:17:02 +02:00

30 lines
995 B
Bash

# Template file for 'buildbot'
pkgname=buildbot
version=0.8.14
revision=2
noarch=yes
build_style=python-module
hostmakedepends="python"
makedepends="python-setuptools python-dateutil python-Jinja2 python-sqlalchemy-migrate Twisted"
depends="${makedepends}"
pycompile_module="buildbot"
pycompile_dirs="/usr/share/buildbot/contrib"
short_desc="A system to automate the compile/test cycle"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://buildbot.net/"
license="GPL-2"
distfiles="${PYPI_SITE}/b/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=331efd07bd7522c222a8fb258801e8d78332c88d778ee76416b9e1028676e964
pre_install() {
cd ${wrksrc}/contrib
sed -i 's,#!/usr/local/bin/python,#!/usr/bin/python,' bk_buildbot.py
sed -i 's,#!/usr/bin/env jython,#!/usr/bin/env python,' run_maxq.py
}
post_install() {
# Install all contrib modules.
local contribdir=${DESTDIR}/usr/share/buildbot/contrib
vmkdir usr/share/buildbot/contrib
install -m755 ${wrksrc}/contrib/*.py ${contribdir}
}