# Contributor: Carlo Landmeter # Maintainer: pkgname=buildbot-slave pkgver=0.8.9 pkgrel=2 pkgdesc="Buildbot slave daemon" url="http://buildbot.net/" arch="noarch" license="GPL2" depends="python py-twisted" depends_dev="" makedepends="python-dev py-setuptools" install="buildbot-slave.pre-install" BUILDBOT_USER=buildbot BUILDBOT_GROUP=buildbot pkgusers="$BUILDBOT_USER" pkggroups="$BUILDBOT_GROUP" subpackages="" source="https://pypi.python.org/packages/source/b/buildbot-slave/buildbot-slave-$pkgver.tar.gz buildslave.initd buildslave.confd" builddir="$srcdir"/$pkgname-$pkgver prepare() { default_prepare || return 1 } build() { cd "$builddir" python setup.py build || return 1 } package() { cd "$builddir" python setup.py install --prefix=/usr --root="$pkgdir" \ || return 1 install -D -m 755 \ "$srcdir"/buildslave.initd \ "$pkgdir"/etc/init.d/buildslave \ || return 1 install -D -m 644 \ "$srcdir"/buildslave.confd \ "$pkgdir"/etc/conf.d/buildslave \ || return 1 install -d -o $BUILDBOT_USER -g $BUILDBOT_GROUP \ "$pkgdir"/var/lib/buildslave \ || return 1 } md5sums="b4c085dcad558b61af5233d1ea1ed750 buildbot-slave-0.8.9.tar.gz 6a07c39a20fd2de62eeac38332fc5ec4 buildslave.initd 3baaa33c0bc00e0fb6784f8c41482488 buildslave.confd" sha256sums="864ca4a975bdbe3e973812a7d4ac7ffaf6f9ea5b6364e9ddb2fc92bccacf93af buildbot-slave-0.8.9.tar.gz 5c3247e53ae214b4c1913e8eccbf7c43f8707ec217deb1f4ec6bec4f351fbf09 buildslave.initd c324eee07561afd8be623b46cd8f50cbbac5f1e42f2c493aa75dbaace6dcfa6f buildslave.confd" sha512sums="3cc6b0cafe752fcfe5b91b70faff249cffb2dbfc03274cccffccd739ec448b66986db171924d14ba4de85e843b2f67a36650bcb965f600ec1dd8278f6198a283 buildbot-slave-0.8.9.tar.gz 217a9e3f774bcc7e7773d6e3047dbbabe196d168f814485ae54d1a94b330616fd80ad82bfa67c9b6185c39b780eae7a71776e727810ff4df337baca44d5fdbda buildslave.initd 54fc03a82cebf874c18d1bd739a6640677cfcd540b47a9929e6f5d63a83bd64bee615b033a72b49ab5fa3da69b16ff657805392ab0a68e0d33e48581fc8bb017 buildslave.confd"