summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-16 02:21:20 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-16 02:21:20 (GMT)
commit6d366e3272d669d8497432270f9fea52be858f83 (patch)
treea446605068dc3f35a0cf868d0b158460133e2d11
parent71ff093002c10aaf942f90a649a6a6f03f914631 (diff)
downloadlinhes_pkgbuild-6d366e3272d669d8497432270f9fea52be858f83.zip
linhes_pkgbuild-6d366e3272d669d8497432270f9fea52be858f83.tar.gz
linhes_pkgbuild-6d366e3272d669d8497432270f9fea52be858f83.tar.bz2
python-appdirs: initial inclusion. dep of flexget
-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
+