archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-appdirs / trunk / PKGBUILD
blob54e614446085c817563ffa8b29c410fa973efd55
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Tobias Roettger <toroettg@gmail.com>
4 pkgname=python-appdirs
5 pkgver=1.4.4
6 pkgrel=8
7 pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".'
8 arch=('any')
9 url="https://github.com/ActiveState/appdirs"
10 license=('MIT')
11 depends=('python')
12 makedepends=('python-setuptools')
13 source=("https://pypi.io/packages/source/a/appdirs/appdirs-$pkgver.tar.gz")
14 sha512sums=('8b0cdd9fd471d45b186aa47607691cf378dabd3edc7b7026a57bd6d6f57698e86f440818a5e23ba4288b35d6bb8cb6eb0106eae8aab09d8863ee15025d300883')
16 build() {
17   cd appdirs-$pkgver
18   python setup.py build
21 check() {
22   cd appdirs-$pkgver
23   python setup.py test
26 package() {
27   cd appdirs-$pkgver
28   python setup.py install --root="$pkgdir/" --optimize=1
29   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
32 # vim:set ts=2 sw=2 et: