From 6d366e3272d669d8497432270f9fea52be858f83 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 16 Jul 2017 02:21:20 +0000 Subject: python-appdirs: initial inclusion. dep of flexget --- abs/core/python_modules/python-appdirs/PKGBUILD | 53 ++++++++++++++++++++++ abs/core/python_modules/python-appdirs/__changelog | 2 + 2 files changed, 55 insertions(+) create mode 100644 abs/core/python_modules/python-appdirs/PKGBUILD create mode 100644 abs/core/python_modules/python-appdirs/__changelog 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 +# Contributor: Tobias Roettger + +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 + -- cgit v0.12