1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Tobias Roettger <toroettg@gmail.com>
5 pkgname=(python-appdirs python2-appdirs)
8 pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".'
10 url="https://github.com/ActiveState/appdirs"
12 makedepends=('python-setuptools' 'python2-setuptools')
13 source=("https://pypi.io/packages/source/a/appdirs/appdirs-$pkgver.tar.gz")
14 sha512sums=('8b0cdd9fd471d45b186aa47607691cf378dabd3edc7b7026a57bd6d6f57698e86f440818a5e23ba4288b35d6bb8cb6eb0106eae8aab09d8863ee15025d300883')
17 cp -a appdirs-$pkgver{,-py2}
21 cd "$srcdir"/appdirs-$pkgver
24 cd "$srcdir"/appdirs-$pkgver-py2
25 python2 setup.py build
29 cd "$srcdir"/appdirs-$pkgver
32 cd "$srcdir"/appdirs-$pkgver-py2
36 package_python-appdirs() {
40 python setup.py install --root="$pkgdir/" --optimize=1
41 install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
44 package_python2-appdirs() {
47 cd appdirs-$pkgver-py2
48 python2 setup.py install --root="$pkgdir/" --optimize=1
49 install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
52 # vim:set ts=2 sw=2 et: