Date: Thursday, October 13, 2022 @ 02:25:16
Author: polyzen
Revision: 1327947
archrelease: copy trunk to community-any
Added:
python-tzdata/repos/community-any/PKGBUILD
(from rev 1327946, python-tzdata/trunk/PKGBUILD)
Deleted:
python-tzdata/repos/community-any/PKGBUILD
----------+
PKGBUILD | 77 ++++++++++++++++++++++++++++---------------------------------
1 file changed, 36 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-13 02:24:53 UTC (rev 1327946)
+++ PKGBUILD 2022-10-13 02:25:16 UTC (rev 1327947)
@@ -1,41 +0,0 @@
-# Maintainer: Daniel M. Capella <[email protected]>
-
-_name=tzdata
-pkgname=python-tzdata
-pkgver=2022.4
-pkgrel=1
-pkgdesc='Provider of IANA time zone data'
-arch=('any')
-url=https://github.com/python/tzdata
-license=('Apache')
-depends=('python')
-makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
-checkdepends=('python-pytest' 'python-pytest-subtests')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('ada9133fbd561e6ec3d1674d3fba50251636e918aa97bd59d63735bef5a513bb')
-b2sums=('738464ce6f9f036f5b010ff69f26ec9fdb6f0053f13de18fa4c66b3c4e8e5cf0c237b0e4545e99a18e5cb9eff39714bf49a96aecc4024d6a44ec63688a0353f3')
-
-build() {
- cd $_name-$pkgver
- python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
- cd $_name-$pkgver
- python -m venv --system-site-packages test-env
- test-env/bin/python -m installer dist/*.whl
- test-env/bin/python -m pytest
-}
-
-package() {
- cd $_name-$pkgver
- python -m installer --destdir="$pkgdir" dist/*.whl
-
- local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
- ln -s /etc/localtime "$pkgdir/$site_packages"/tzdata/zoneinfo/localtime
-
- # Symlink license file
- install -d "$pkgdir"/usr/share/licenses/$pkgname
- ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
- "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-tzdata/repos/community-any/PKGBUILD (from rev 1327946,
python-tzdata/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-13 02:25:16 UTC (rev 1327947)
@@ -0,0 +1,36 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+
+_name=tzdata
+pkgname=python-tzdata
+pkgver=2022.5
+pkgrel=1
+pkgdesc='Provider of IANA time zone data'
+arch=('any')
+url=https://github.com/python/tzdata
+license=('Apache')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-subtests')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=('e15b2b3005e2546108af42a0eb4ccab4d9e225e2dfbf4f77aad50c70a4b1f3ab')
+b2sums=('506352518815a22314ac3d8bcdffa9d999ed52ceb75f55a9591d1220a242519c9c7baf38d0495eedaf134af087bcedf8895fad1b52ac856e1aae646485911386')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_name-$pkgver
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ test-env/bin/python -m pytest
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ ln -s /etc/localtime "$pkgdir/$site_packages"/tzdata/zoneinfo/localtime
+}