[arch-commits] Commit in python-xvfbwrapper/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Tue Jul 31 21:52:13 UTC 2018
Date: Tuesday, July 31, 2018 @ 21:52:13
Author: eschwartz
Revision: 366150
archrelease: copy trunk to community-testing-any
Added:
python-xvfbwrapper/repos/community-testing-any/
python-xvfbwrapper/repos/community-testing-any/PKGBUILD
(from rev 366149, python-xvfbwrapper/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-xvfbwrapper/repos/community-testing-any/PKGBUILD (from rev 366149, python-xvfbwrapper/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-07-31 21:52:13 UTC (rev 366150)
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=xvfbwrapper
+pkgname=python-xvfbwrapper
+pkgver=0.2.9
+pkgrel=2
+pkgdesc="Manage headless displays with Xvfb (X virtual framebuffer)"
+arch=('any')
+url="https://github.com/cgoldberg/xvfbwrapper"
+license=('MIT')
+depends=('python' 'xorg-server-xvfb')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-mock')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('800f3489b2e1bbc884d7651e344ed73783d6c00856f3ab7ccfa6b9058dd6d3bb98d38f11172ba89dff5773d6c5b773bc000786c1f6c6aae5a27179b37017851e')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ PYTHONPATH=${srcdir}/${pkgname}-${pkgver}/build:${PYTHONPATH} py.test
+}
+
+package_python-xvfbwrapper() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --root="${pkgdir}/"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}/"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+}
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list