summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--abs/core/python_modules/python-appdirs/PKGBUILD53
-rw-r--r--abs/core/python_modules/python-appdirs/__changelog2
2 files changed, 55 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-appdirs/PKGBUILD b/abs/core/python_modules/python-appdirs/PKGBUILD
new file mode 100644
index 0000000..95552c7
--- /dev/null
+++ b/abs/core/python_modules/python-appdirs/PKGBUILD
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Tobias Roettger <toroettg@gmail.com>
+
+pkgbase=python-appdirs
+pkgname=(python2-appdirs)
+pkgver=1.4.3
+pkgrel=1
+pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".'
+arch=('any')
+url="https://github.com/ActiveState/appdirs"
+license=('MIT')
+makedepends=('python2-setuptools')
+source=("https://pypi.io/packages/source/a/appdirs/appdirs-$pkgver.tar.gz")
+md5sums=('44c679904082a2133f5566c8a0d3ab42')
+
+prepare() {
+ cp -a appdirs-$pkgver{,-py2}
+}
+
+build() {
+# cd "$srcdir"/appdirs-$pkgver
+# python setup.py build
+
+ cd "$srcdir"/appdirs-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+# cd "$srcdir"/appdirs-$pkgver
+# python setup.py test
+
+ cd "$srcdir"/appdirs-$pkgver-py2
+ python2 setup.py test
+}
+
+package_python-appdirs() {
+ depends=('python')
+
+ cd appdirs-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-appdirs() {
+ depends=('python2')
+
+ cd appdirs-$pkgver-py2
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/python_modules/python-appdirs/__changelog b/abs/core/python_modules/python-appdirs/__changelog
new file mode 100644
index 0000000..4f818ef
--- /dev/null
+++ b/abs/core/python_modules/python-appdirs/__changelog
@@ -0,0 +1,2 @@
+PKGBUILD: don't build py 3 stuff
+