Date: Thursday, April 6, 2023 @ 03:02:35
  Author: felixonmars
Revision: 1438190

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pikepdf/repos/community-staging-x86_64/
  python-pikepdf/repos/community-staging-x86_64/PKGBUILD
    (from rev 1438189, python-pikepdf/trunk/PKGBUILD)

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

Copied: python-pikepdf/repos/community-staging-x86_64/PKGBUILD (from rev 
1438189, python-pikepdf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-06 03:02:35 UTC (rev 1438190)
@@ -0,0 +1,34 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Fredrick Brennan <[email protected]>
+# Contributor: Stephan Eisvogel <eisvogel at embinet dot de>
+
+pkgname=python-pikepdf
+pkgver=7.1.2
+pkgrel=2
+pkgdesc='Read and write PDFs with Python, powered by qpdf'
+arch=(x86_64)
+url='https://github.com/pikepdf/pikepdf'
+license=(MPL2)
+makedepends=(pybind11 python-build python-installer python-wheel python-toml 
python-setuptools-scm)
+depends=(python-lxml python-pillow python-deprecation python-typing_extensions 
python-packaging qpdf)
+checkdepends=(python-pytest-xdist python-hypothesis python-psutil)
+source=(https://github.com/pikepdf/pikepdf/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('c2020b19b695b759857d8f2270dcc829f7e1c6f0aa7538b9fcd48fd6548f23e3')
+
+build() {
+  cd pikepdf-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd pikepdf-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd pikepdf-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to