archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-platformdirs / trunk / PKGBUILD
blob01930848e8bfae27ef71b3523d9795b5f9fb3e43
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Tobias Roettger <toroettg@gmail.com>
4 pkgname=python-platformdirs
5 pkgver=2.0.2
6 pkgrel=4
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/platformdirs/platformdirs"
10 license=('MIT')
11 depends=('python')
12 makedepends=('python-setuptools')
13 source=("https://pypi.io/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz")
14 sha512sums=('a342167cf10959b04535060dfffc11df42e046cfcf75c83c0eaa45ba314a864ff715f0764efd65aee5a404f39fe3c80a9f0fde6adf91b95cba7f508d01d09ab3')
16 build() {
17   cd "$srcdir"/platformdirs-$pkgver
18   python setup.py build
21 check() {
22   cd "$srcdir"/platformdirs-$pkgver
23   python setup.py test
26 package() {
27   cd platformdirs-$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: