Date: Saturday, April 22, 2023 @ 12:27:30
Author: alerque
Revision: 1448304
archrelease: copy trunk to community-staging-any
Added:
python-pytimeparse/repos/community-staging-any/PKGBUILD
(from rev 1448303, python-pytimeparse/trunk/PKGBUILD)
Deleted:
python-pytimeparse/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 69 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 35 insertions(+), 34 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-22 12:27:22 UTC (rev 1448303)
+++ PKGBUILD 2023-04-22 12:27:30 UTC (rev 1448304)
@@ -1,34 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Kewl <[email protected](rot13)>
-# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
-
-pkgname=python-pytimeparse
-_pyname=${pkgname#python-}
-pkgver=1.1.8
-pkgrel=5
-pkgdesc='A small library to parse various kinds of time expressions'
-arch=(any)
-url="https://github.com/wroberts/$_pyname"
-license=(MIT)
-depends=(python)
-makedepends=(python-setuptools)
-checkdepends=(python-nose)
-_archive="$_pyname-$pkgver"
-source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
-sha256sums=('e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a')
-
-build() {
- cd "$_archive"
- python setup.py build
-}
-
-check() {
- cd "$_archive"
- nosetests
-}
-
-package() {
- cd "$_archive"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.rst
-}
Copied: python-pytimeparse/repos/community-staging-any/PKGBUILD (from rev
1448303, python-pytimeparse/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-22 12:27:30 UTC (rev 1448304)
@@ -0,0 +1,35 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Kewl <[email protected](rot13)>
+# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
+
+pkgname=python-pytimeparse
+_pyname=${pkgname#python-}
+pkgver=1.1.8
+pkgrel=7
+pkgdesc='A small library to parse various kinds of time expressions'
+arch=(any)
+url="https://github.com/wroberts/$_pyname"
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+ python-setuptools)
+checkdepends=(python-nose)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+sha256sums=('e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a')
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+}
+
+check() {
+ cd "$_archive"
+ nosetests
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.rst
+}