Date: Thursday, April 6, 2023 @ 02:07:53
  Author: felixonmars
Revision: 1438044

archrelease: copy trunk to community-staging-any

Added:
  python-sphinxcontrib-applehelp/repos/community-staging-any/
  python-sphinxcontrib-applehelp/repos/community-staging-any/PKGBUILD
    (from rev 1438043, python-sphinxcontrib-applehelp/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-sphinxcontrib-applehelp/repos/community-staging-any/PKGBUILD 
(from rev 1438043, python-sphinxcontrib-applehelp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 02:07:53 UTC (rev 1438044)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+
+_name=sphinxcontrib-applehelp
+pkgname=python-sphinxcontrib-applehelp
+pkgver=1.0.4
+pkgrel=2
+pkgdesc='Sphinx extension which outputs Apple help books'
+arch=('any')
+url=https://github.com/sphinx-doc/sphinxcontrib-applehelp
+license=('BSD')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
+checkdepends=('python-pytest' 'python-sphinx')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz";)
+sha256sums=('828f867945bbe39817c210a1abfd1bc4895c8b73fcaade56d45357a348a07d7e')
+b2sums=('02a68ab585ecc8429056aa00c2ac3f0f555857cf649238a8df5cb1d39f1cd9c91d637ef55f2247df311b656e74a961b0418a1c552122b2a88ea160db5f996ee3')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest
+}
+
+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"/sphinxcontrib_applehelp-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}

Reply via email to