Date: Saturday, April 8, 2023 @ 12:31:51
  Author: felixonmars
Revision: 1442325

archrelease: copy trunk to community-staging-any

Added:
  python-agate-excel/repos/community-staging-any/
  python-agate-excel/repos/community-staging-any/PKGBUILD
    (from rev 1442324, python-agate-excel/trunk/PKGBUILD)

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

Copied: python-agate-excel/repos/community-staging-any/PKGBUILD (from rev 
1442324, python-agate-excel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 12:31:51 UTC (rev 1442325)
@@ -0,0 +1,48 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Gabriel Magno <[email protected]>
+# Contributor: Michał Pałubicki <[email protected]>
+
+_pyname=agate-excel
+pkgname=python-$_pyname
+pkgver=0.2.5
+pkgrel=5
+pkgdesc='Adds read support for Excel files (xls and xlsx) to agate'
+arch=(any)
+url="https://$_pyname.readthedocs.org";
+license=(MIT)
+_pydeps=(agate
+         olefile
+         openpyxl
+         six
+         sphinx_rtd_theme
+         xlrd)
+depends=(python
+         "${_pydeps[@]/#/python-}")
+makedepends=(python-setuptools
+             python-sphinx)
+checkdepends=(python-nose)
+_archive="$_pyname-$pkgver"
+source=("$_archive.tar.gz::https://github.com/wireservice/$_pyname/archive/$pkgver.tar.gz";)
+sha256sums=('aad17edcc99627106e990755cc54e6d8a77452f6f22b30768b35047fbb12c587')
+
+build() {
+       cd "$_archive"
+       python setup.py build
+       python setup.py build_sphinx
+       local _rtd_theme_path="$(python -c 'import sphinx_rtd_theme; 
print(sphinx_rtd_theme.get_html_theme_path())')"
+       rm -rvf build/sphinx/html/_static
+       ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" 
build/sphinx/html/_static
+}
+
+check() {
+       cd "$_archive"
+       nosetests
+}
+
+package() {
+       cd "$_archive"
+       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+       install -dm0755 "$pkgdir/usr/share/doc/"
+       cp -rv build/sphinx/html "$pkgdir/usr/share/doc/$pkgname"
+       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" COPYING
+}

Reply via email to