[arch-commits] Commit in python-pymupdf/repos/community-x86_64 (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sat Nov 20 09:38:22 UTC 2021


    Date: Saturday, November 20, 2021 @ 09:38:22
  Author: dvzrv
Revision: 1052831

archrelease: copy trunk to community-x86_64

Added:
  python-pymupdf/repos/community-x86_64/PKGBUILD
    (from rev 1052830, python-pymupdf/trunk/PKGBUILD)
Deleted:
  python-pymupdf/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   90 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 45 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-20 09:38:14 UTC (rev 1052830)
+++ PKGBUILD	2021-11-20 09:38:22 UTC (rev 1052831)
@@ -1,45 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=PyMuPDF
-pkgname=python-pymupdf
-pkgver=1.19.1
-pkgrel=1
-pkgdesc="Python bindings for MuPDF's rendering library"
-arch=('x86_64')
-url="https://github.com/pymupdf/PyMuPDF"
-license=('AGPL3')
-depends=('glibc' 'gumbo-parser' 'jbig2dec' 'libmupdf' 'openjpeg2' 'python')
-makedepends=('freetype2' 'libjpeg-turbo' 'python-distro' 'python-setuptools' 'swig' 'systemd')
-checkdepends=('python-pillow' 'python-pytest')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('1c451695d0a79ad3643ea69a26420685bc00c832fc223c7db50d9acc5e385f42451c18052d7b4865577d9883b39d75935103af5150689091a93609fe4f70d679')
-b2sums=('29e1ec07a0c57311e90fe31a37184fc2db63afd0183fea93c79ba99af74d32be079d404935147160f8580dae05c84415fe90f06deaf5f9ddf42a069097c3b0e4')
-
-prepare() {
-  mv -v "$_name-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-check() {
-  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  local _test_dir="test_dir"
-  cd "$pkgname-$pkgver"
-  mkdir -vp "${_test_dir}"
-  # install to test dir for testing
-  python setup.py install --optimize=1 --root="${_test_dir}"
-
-  export PYTHONPATH="${_test_dir}/${_site_packages}:${PYTHONPATH}"
-  pytest -v -k "not test_font1 and not test_pageids and not test_textbox3"
-}
-
-package() {
-  depends+=('libfreetype.so' 'libjpeg.so')
-
-  cd "$pkgname-$pkgver"
-  python setup.py install --optimize=1 --root="${pkgdir}"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pymupdf/repos/community-x86_64/PKGBUILD (from rev 1052830, python-pymupdf/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-20 09:38:22 UTC (rev 1052831)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=PyMuPDF
+pkgname=python-pymupdf
+pkgver=1.19.2
+pkgrel=1
+pkgdesc="Python bindings for MuPDF's rendering library"
+arch=(x86_64)
+url="https://github.com/pymupdf/PyMuPDF"
+license=(AGPL3)
+depends=(glibc gumbo-parser jbig2dec libmupdf openjpeg2 python)
+makedepends=(freetype2 libjpeg-turbo python-distro python-setuptools swig systemd)
+checkdepends=(python-pillow python-pytest)
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('98d52b09bcc6f0d5002f0eea05f5c4b7b6c65a8e29e8d8200292a806b89721a39e2151cdbd99edd1eedb2e547da97f6f50f2fea39c893c4abfbbcb7ec9cc793f')
+b2sums=('b17adade2d0a99e09890a96a9fc5e07f4e30b0f640a42b78691a4e2a7540c6138cb66c8c5c08112ec1613c73e2589c9c47c64118108c8d191bd63ebd86f44add')
+
+prepare() {
+  mv -v "$_name-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  local _test_dir="test_dir"
+  cd "$pkgname-$pkgver"
+  mkdir -vp "${_test_dir}"
+  # install to test dir for testing
+  python setup.py install --optimize=1 --root="${_test_dir}"
+
+  export PYTHONPATH="${_test_dir}/${_site_packages}:${PYTHONPATH}"
+  pytest -v -k "not test_font1 and not test_pageids and not test_textbox3"
+}
+
+package() {
+  depends+=(libfreetype.so libjpeg.so)
+
+  cd "$pkgname-$pkgver"
+  python setup.py install --optimize=1 --root="${pkgdir}"
+  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list