[arch-commits] Commit in python-platformdirs/repos (staging-any staging-any/PKGBUILD)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 16:43:56 UTC 2021


    Date: Tuesday, November 30, 2021 @ 16:43:56
  Author: foutrelis
Revision: 429617

archrelease: copy trunk to staging-any

Added:
  python-platformdirs/repos/staging-any/
  python-platformdirs/repos/staging-any/PKGBUILD
    (from rev 429616, python-platformdirs/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-platformdirs/repos/staging-any/PKGBUILD (from rev 429616, python-platformdirs/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2021-11-30 16:43:56 UTC (rev 429617)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tobias Roettger <toroettg at gmail.com>
+
+pkgname=python-platformdirs
+pkgver=2.0.2
+pkgrel=3
+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')
+depends=('python')
+makedepends=('python-setuptools')
+source=("https://pypi.io/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz")
+sha512sums=('a342167cf10959b04535060dfffc11df42e046cfcf75c83c0eaa45ba314a864ff715f0764efd65aee5a404f39fe3c80a9f0fde6adf91b95cba7f508d01d09ab3')
+
+build() {
+  cd "$srcdir"/platformdirs-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/platformdirs-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd platformdirs-$pkgver
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list