Date: Saturday, January 14, 2023 @ 07:02:46
Author: polyzen
Revision: 1383366
archrelease: copy trunk to community-any
Added:
python-sphinx-alabaster-theme/repos/community-any/PKGBUILD
(from rev 1383365, python-sphinx-alabaster-theme/trunk/PKGBUILD)
Deleted:
python-sphinx-alabaster-theme/repos/community-any/PKGBUILD
----------+
PKGBUILD | 68 ++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 38 insertions(+), 30 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-14 07:02:21 UTC (rev 1383365)
+++ PKGBUILD 2023-01-14 07:02:46 UTC (rev 1383366)
@@ -1,30 +0,0 @@
-# Maintainer: Johannes Löthberg <[email protected]>
-# Contributor: xantares
-
-pkgname=python-sphinx-alabaster-theme
-pkgver=0.7.12
-pkgrel=9
-
-pkgdesc="Sphinx default theme"
-url='https://github.com/bitprophet/alabaster'
-arch=('any')
-license=('custom:BSD')
-
-depends=('python')
-makedepends=('python-setuptools')
-
-source=("https://pypi.org/packages/source/a/alabaster/alabaster-$pkgver.tar.gz")
-
-md5sums=('3591827fde96d1dd23970fb05410ed04')
-
-build() {
- cd alabaster-"$pkgver"
- python setup.py build
-}
-
-package() {
- cd alabaster-"$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
-
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
-}
Copied: python-sphinx-alabaster-theme/repos/community-any/PKGBUILD (from rev
1383365, python-sphinx-alabaster-theme/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-14 07:02:46 UTC (rev 1383366)
@@ -0,0 +1,38 @@
+# Maintainer: Johannes Löthberg <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: xantares
+
+_name=alabaster
+pkgname=python-sphinx-alabaster-theme
+pkgver=0.7.13
+pkgrel=1
+
+pkgdesc="Sphinx default theme"
+url='https://github.com/bitprophet/alabaster'
+arch=('any')
+license=('custom:BSD')
+
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+ 'python-wheel')
+
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+
+sha256sums=('a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2')
+b2sums=('b67ab19b3cb4d86bc0f2bc94cbac7de42b6ffc089844d49daa5db40de942dd87555f9ed8ac362ea01904a9e77f8fe995250bd878b39c9a4851041cec8ef6460e')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$_name-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}