summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron DeVore2015-07-08 11:17:02 -0700
committerAaron DeVore2015-07-08 11:17:02 -0700
commiteb214696c101a6f9f4528f65f233a0844ac443d8 (patch)
tree01ae63f594427891062a79b4943795806defdb1c
downloadaur-python2-errorhandler.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD31
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..aaec570e3b3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python2-errorhandler
+ pkgdesc = A logging framework handler that tracks when messages above a certain level have been logged.
+ pkgver = 1.1.1
+ pkgrel = 2
+ url = http://www.simplistix.co.uk/software/python/errorhandler
+ arch = any
+ license = MIT
+ makedepends = python2-sphinx
+ makedepends = python2-pkginfo
+ depends = python2
+ source = http://pypi.python.org/packages/source/e/errorhandler/errorhandler-1.1.1.tar.gz
+ md5sums = 2d31987cb58638721b51a4f3bd17605d
+
+pkgname = python2-errorhandler
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..72a63d197b9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Aaron DeVore <aaron.devore@gmail.com>
+# Contributor: Jan Scevlik <jan.scevlik@gmail.com>
+
+pkgname=python2-errorhandler
+pkgver=1.1.1
+pkgrel=2
+pkgdesc="A logging framework handler that tracks when messages above a certain level have been logged."
+arch=(any)
+url="http://www.simplistix.co.uk/software/python/errorhandler"
+license=(MIT)
+depends=('python2')
+makedepends=('python2-sphinx' 'python2-pkginfo')
+source=(http://pypi.python.org/packages/source/e/errorhandler/errorhandler-$pkgver.tar.gz)
+md5sums=('2d31987cb58638721b51a4f3bd17605d')
+
+build() {
+ cd "$srcdir/errorhandler-$pkgver"
+ python2 setup.py build
+ cd docs
+ make html SPHINXBUILD=sphinx-build2
+}
+
+package() {
+ cd "$srcdir/errorhandler-$pkgver"
+ python2 setup.py install --root=$pkgdir
+ local docs="$pkgdir/usr/share/doc/python2-errorhandler/html"
+ install -dm755 "$docs"
+ cp -r docs/_build/html/* "$docs"
+ install -D -m644 "docs/license.txt" \
+ "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}