author | Jelle van der Waa
<jelle@archlinux.org> 2021-11-29 19:24:32 UTC |
committer | Jelle van der Waa
<jelle@archlinux.org> 2021-11-29 19:24:32 UTC |
parent | 31ec53280ac1a6fdaf9efb6256dcecc764a17ff0 |
PKGBUILD | +5 | -25 |
diff --git a/PKGBUILD b/PKGBUILD index d4746a5..d96fd2a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,52 +1,32 @@ # Maintainer: Felix Yan <felixonmars@archlinux.org> # Contributor: Tobias Roettger <toroettg@gmail.com> -pkgbase=python-platformdirs -pkgname=(python-platformdirs python2-platformdirs) +pkgname=python-platformdirs pkgver=2.0.2 -pkgrel=1 +pkgrel=2 pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir"' arch=('any') url="https://github.com/platformdirs/platformdirs" license=('MIT') -makedepends=('python-setuptools' 'python2-setuptools') +depends=('python') +makedepends=('python-setuptools') source=("https://pypi.io/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz") sha512sums=('a342167cf10959b04535060dfffc11df42e046cfcf75c83c0eaa45ba314a864ff715f0764efd65aee5a404f39fe3c80a9f0fde6adf91b95cba7f508d01d09ab3') -prepare() { - cp -a platformdirs-$pkgver{,-py2} -} - build() { cd "$srcdir"/platformdirs-$pkgver python setup.py build - - cd "$srcdir"/platformdirs-$pkgver-py2 - python2 setup.py build } check() { cd "$srcdir"/platformdirs-$pkgver python setup.py test - - cd "$srcdir"/platformdirs-$pkgver-py2 - python2 setup.py test } -package_python-platformdirs() { - depends=('python') - +package() { cd platformdirs-$pkgver python setup.py install --root="$pkgdir/" --optimize=1 install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ } -package_python2-platformdirs() { - depends=('python2') - - cd platformdirs-$pkgver-py2 - python2 setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ -} - # vim:set ts=2 sw=2 et: