summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHsiu-Ming Chang2019-11-09 22:11:04 +0800
committerHsiu-Ming Chang2019-11-09 22:11:04 +0800
commitd610a33f6b614c39b905bcf383d58e7fb9352b0a (patch)
tree97e27a2f16cf9737134527848d37a10d7b68dbd5
parent2a22f4eccb0059199d7760cb125f001d6ae817cd (diff)
downloadaur-d610a33f6b614c39b905bcf383d58e7fb9352b0a.tar.gz
PyMuPDF v1.16.7
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD16
2 files changed, 15 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 59f7a122eeb..dc892d66dc6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = python2-pymupdf
pkgdesc = Python bindings for MuPDF
- pkgver = 1.16.6
+ pkgver = 1.16.7
pkgrel = 1
url = https://github.com/pymupdf/PyMuPDF
arch = x86_64
@@ -13,16 +13,14 @@ pkgbase = python2-pymupdf
depends = jbig2dec
depends = openjpeg2
depends = freetype2
- depends = harfbuzz
- source = https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-1.16.6.tar.gz
- sha256sums = 7d938cf23a95cd999d236f249881a4e6748b474fed67f3fff836ef36e2659054
+ source = https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-1.16.7.tar.gz
+ sha256sums = b16c85b2f89cc89e36b59fe734f14e5c939c8b24697bf33ff7a19584e8334976
pkgname = python2-pymupdf
depends = libjpeg-turbo
depends = jbig2dec
depends = openjpeg2
depends = freetype2
- depends = harfbuzz
depends = python2
pkgname = python-pymupdf
@@ -30,6 +28,5 @@ pkgname = python-pymupdf
depends = jbig2dec
depends = openjpeg2
depends = freetype2
- depends = harfbuzz
depends = python
diff --git a/PKGBUILD b/PKGBUILD
index d97d06a0365..ab27839aa20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,21 +4,21 @@
pkgname=('python2-pymupdf' 'python-pymupdf')
_name='PyMuPDF'
-pkgver=1.16.6
+pkgver=1.16.7
pkgrel=1
pkgdesc='Python bindings for MuPDF'
arch=('x86_64')
url='https://github.com/pymupdf/PyMuPDF'
license=('AGPL3')
-depends=('libjpeg-turbo' 'jbig2dec' 'openjpeg2' 'freetype2' 'harfbuzz')
+depends=('libjpeg-turbo' 'jbig2dec' 'openjpeg2' 'freetype2')
makedepends=('python2-setuptools' 'python-setuptools' 'libmupdf>=1.16' 'libmupdf<1.17')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-${pkgver}.tar.gz")
-sha256sums=('7d938cf23a95cd999d236f249881a4e6748b474fed67f3fff836ef36e2659054')
+sha256sums=('b16c85b2f89cc89e36b59fe734f14e5c939c8b24697bf33ff7a19584e8334976')
prepare() {
cd "${_name}-${pkgver}"
- sed -i "s:# 'jbig2dec', 'openjp2', 'jpeg', 'freetype',:'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'harfbuzz',:g" setup.py
+ sed -i "s:# 'jbig2dec', 'openjp2', 'jpeg', 'freetype',:'jbig2dec', 'openjp2', 'jpeg', 'freetype',:g" setup.py
}
build() {
@@ -27,6 +27,14 @@ build() {
python setup.py build
}
+check() {
+ cd "${_name}-${pkgver}"
+ local python2_version=$(python2 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python2_version}" python2 -c 'import sys; sys.path.remove(""); import fitz'
+ local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" python -c 'import sys; sys.path.remove(""); import fitz'
+}
+
package_python2-pymupdf() {
depends+=('python2')
cd "${_name}-${pkgver}"