summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Weiman2015-12-04 14:17:45 -0500
committerMark Weiman2015-12-04 14:17:45 -0500
commit9f9cbbe568bcf5771a53ba819a6af55ff9e67704 (patch)
treea70dbf2aa693efcd6e09f414a89f3ec9e44e3813
downloadaur-9f9cbbe568bcf5771a53ba819a6af55ff9e67704.tar.gz
import commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD45
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..da2900253f2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = python-tempdir
+ pkgdesc = Python wrappers for manipulating temp directories
+ pkgver = 0.6
+ pkgrel = 1
+ url = https://pypi.python.org/pypi/tempdir/0.6
+ arch = any
+ license = MIT
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ source = https://pypi.python.org/packages/source/t/tempdir/tempdir-0.6.tar.gz
+ md5sums = 93890c11a7101ae55eebf77b86c75a05
+
+pkgname = python-tempdir
+ depends = python
+ depends = python-setuptools
+
+pkgname = python2-tempdir
+ depends = python2
+ depends = python2-setuptools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fefcf403dc8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Mark Weiman <mark dot weriman at markzz dot com>
+
+pkgbase=python-tempdir
+pkgname=('python-tempdir' 'python2-tempdir')
+pkgver=0.6
+pkgrel=1
+pkgdesc="Python wrappers for manipulating temp directories"
+arch=('any')
+license=('MIT')
+url="https://pypi.python.org/pypi/tempdir/${pkgver}"
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
+source=("https://pypi.python.org/packages/source/t/tempdir/tempdir-0.6.tar.gz")
+md5sums=('93890c11a7101ae55eebf77b86c75a05')
+
+prepare() {
+ cp -a "$srcdir/tempdir-$pkgver" "$srcdir/tempdir-$pkgver-python2"
+
+ find "$srcdir/tempdir-$pkgver-python2" -name '*.py' | \
+ xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|"
+}
+
+build() {
+ cd "$srcdir/tempdir-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/tempdir-$pkgver-python2"
+ python2 setup.py build
+}
+
+package_python-tempdir() {
+ depends=('python' 'python-setuptools')
+ cd "$srcdir/tempdir-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.rst "$pkgdir"/usr/share/licenses/$pkgname/license.rst
+}
+
+package_python2-tempdir() {
+ depends=('python2' 'python2-setuptools')
+ cd "$srcdir/tempdir-$pkgver-python2"
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 docs/license.rst "$pkgdir"/usr/share/licenses/$pkgname/license.rst
+}
+