summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anderson2015-06-20 09:12:32 -0700
committerEric Anderson2015-06-20 09:12:32 -0700
commit9124f674ec7aecf8dad06743bcb1d567ec0f4e70 (patch)
tree31710591f9a982c6d937b5c4e6771647f5fca2c3
downloadaur-figleaf.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD31
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1938f7d73a0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = figleaf
+ pkgdesc = Python code coverage analysis tool. A minimal replacement for coverage.py
+ pkgver = 0.6.1
+ pkgrel = 2
+ url = http://pypi.python.org/pypi/figleaf/0.6.1
+ arch = any
+ license = BSD
+ makedepends = python2-setuptools
+ depends = python2
+ source = http://darcs.idyll.org/~t/projects/figleaf-0.6.1.tar.gz
+ sha256sums = 04d22485db08f9f60c7de92407753423fa0f574c00211e409e8b0f9482f2f062
+
+pkgname = figleaf
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5808fbaeb3a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Contributor: Adam Mckaig <adam.mckaig@gmail.com>
+# Maintainer: Eric Anderson <ejona86@gmail.com>
+# vim: ts=4 sts=4 et sw=4
+
+pkgname=figleaf
+pkgver=0.6.1
+pkgrel=2
+pkgdesc='Python code coverage analysis tool. A minimal replacement for coverage.py'
+arch=('any')
+url="http://pypi.python.org/pypi/figleaf/$pkgver"
+license=('BSD')
+depends=('python2')
+makedepends=('python2-setuptools')
+source=("http://darcs.idyll.org/~t/projects/figleaf-$pkgver.tar.gz")
+sha256sums=('04d22485db08f9f60c7de92407753423fa0f574c00211e409e8b0f9482f2f062')
+
+prepare() {
+ cd "$srcdir/figleaf-$pkgver"
+ sed -i -e "s|^#\!.*/usr/bin/env python|#!/usr/bin/env python2|" \
+ figleaf/annotate_sections.py
+}
+
+build() {
+ cd "$srcdir/figleaf-$pkgver"
+ python2 setup.py build
+}
+
+package() {
+ cd "$srcdir/figleaf-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}