[arch-commits] Commit in python-platformdirs/repos/extra-any (PKGBUILD PKGBUILD)
Jelle van der Waa
jelle at gemini.archlinux.org
Mon Nov 29 19:24:38 UTC 2021
Date: Monday, November 29, 2021 @ 19:24:37
Author: jelle
Revision: 429475
archrelease: copy trunk to extra-any
Added:
python-platformdirs/repos/extra-any/PKGBUILD
(from rev 429474, python-platformdirs/trunk/PKGBUILD)
Deleted:
python-platformdirs/repos/extra-any/PKGBUILD
----------+
PKGBUILD | 84 +++++++++++++++++++++++--------------------------------------
1 file changed, 32 insertions(+), 52 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-29 19:24:32 UTC (rev 429474)
+++ PKGBUILD 2021-11-29 19:24:37 UTC (rev 429475)
@@ -1,52 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Tobias Roettger <toroettg at gmail.com>
-
-pkgbase=python-platformdirs
-pkgname=(python-platformdirs python2-platformdirs)
-pkgver=2.0.2
-pkgrel=1
-pkgdesc='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir"'
-arch=('any')
-url="https://github.com/ActiveState/platformdirs"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-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')
-
- 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:
Copied: python-platformdirs/repos/extra-any/PKGBUILD (from rev 429474, python-platformdirs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-11-29 19:24:37 UTC (rev 429475)
@@ -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=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')
+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