[arch-commits] Commit in python-docutils-stubs/repos/community-any (PKGBUILD PKGBUILD)
Filipe Laíns
ffy00 at gemini.archlinux.org
Sat Sep 3 17:42:40 UTC 2022
Date: Saturday, September 3, 2022 @ 17:42:40
Author: ffy00
Revision: 1292654
archrelease: copy trunk to community-any
Added:
python-docutils-stubs/repos/community-any/PKGBUILD
(from rev 1292653, python-docutils-stubs/trunk/PKGBUILD)
Deleted:
python-docutils-stubs/repos/community-any/PKGBUILD
----------+
PKGBUILD | 67 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 32 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 17:42:36 UTC (rev 1292653)
+++ PKGBUILD 2022-09-03 17:42:40 UTC (rev 1292654)
@@ -1,35 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-
-_pkgname=docutils-stubs
-pkgname=python-$_pkgname
-pkgver=0.0.21
-pkgrel=3
-pkgdesc='PEP 561 based Type information for docutils'
-arch=('any')
-url='https://github.com/tk0miya/docutils-stubs'
-license=('custom:Unlicense')
-depends=('python' 'python-docutils')
-makedepends=('python-setuptools')
-source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
- 'https://raw.githubusercontent.com/tk0miya/docutils-stubs/1f13dcdbebb06bc742b797bc5765a70d734a7fbc/LICENSE')
-sha512sums=('b469dd35cd9934fc9c53ec3a62b473fbcfb230d42dc501d202da4c8be0e1ee2aef8c2722824cb191f9814aa3f12f773113bda96e4aa35d0b28efd1a6d76656f1'
- 'f23a3f3ec79340594ea40d731087e8586326a96c6cb9675c7a58687255885148286aa73cee087a5a3c976ea901fde16e229d00e98c65188cce3f0d75c8390a10')
-
-build() {
- cd $_pkgname-$pkgver
-
- python setup.py build
-}
-
-package() {
- cd $_pkgname-$pkgver
-
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
- # remove docutils dependency pin
- sed -i '/docutils/d' "$pkgdir"/usr/lib/python*/site-packages/docutils_stubs-*.egg-info/requires.txt
-
- install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-docutils-stubs/repos/community-any/PKGBUILD (from rev 1292653, python-docutils-stubs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-09-03 17:42:40 UTC (rev 1292654)
@@ -0,0 +1,32 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=docutils-stubs
+pkgname=python-$_pkgname
+pkgver=0.0.22
+pkgrel=1
+pkgdesc='PEP 561 based Type information for docutils'
+arch=('any')
+url='https://github.com/tk0miya/docutils-stubs'
+license=('custom:Unlicense')
+depends=('python' 'python-docutils')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
+source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+ 'https://raw.githubusercontent.com/tk0miya/docutils-stubs/1f13dcdbebb06bc742b797bc5765a70d734a7fbc/LICENSE')
+sha512sums=('30aeac0f15c215abdb6eb42e0bf46e50f08f20befc7bebd7fa376e7f85813189ab71df583231c461539530b1d7da6fc263d75b24ff251c46d2dcb3163bd0116b'
+ 'f23a3f3ec79340594ea40d731087e8586326a96c6cb9675c7a58687255885148286aa73cee087a5a3c976ea901fde16e229d00e98c65188cce3f0d75c8390a10')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python -m build -nw
+}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python -m installer -d "$pkgdir" dist/*.whl
+
+ install -Dm 644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list