summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHsiu-Ming Chang2019-12-26 22:55:32 +0800
committerHsiu-Ming Chang2019-12-26 22:55:32 +0800
commit6da60f028e58e789a679335ce53512fce4fe1f01 (patch)
tree55ed0f06b20421d8bf71908cf0fc2e454d771b77
parent223fff7cd81725a889462415424889d34fe48c3b (diff)
downloadaur-6da60f028e58e789a679335ce53512fce4fe1f01.tar.gz
Separate PKGBUILDs for python2 and python3
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD18
2 files changed, 5 insertions, 27 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 606dbbfb99d..38727f49156 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -6,9 +6,9 @@ pkgbase = python2-pymupdf
arch = x86_64
license = AGPL3
makedepends = python2-setuptools
- makedepends = python-setuptools
makedepends = libmupdf>=1.16
makedepends = libmupdf<1.17
+ depends = python2
depends = libjpeg-turbo
depends = jbig2dec
depends = openjpeg2
@@ -17,16 +17,4 @@ pkgbase = python2-pymupdf
sha256sums = d7893954f97fa6087629f3875f3be066dab51302e7c73f4c98c0516a8e2893fb
pkgname = python2-pymupdf
- depends = libjpeg-turbo
- depends = jbig2dec
- depends = openjpeg2
- depends = freetype2
- depends = python2
-
-pkgname = python-pymupdf
- depends = libjpeg-turbo
- depends = jbig2dec
- depends = openjpeg2
- depends = freetype2
- depends = python
diff --git a/PKGBUILD b/PKGBUILD
index 2e80da3bb61..d37bce6db37 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Ruikai Liu <lrk700 at gmail dot com>
# Contributor: Alexander Kobel <a-kobel at a-kobel dot de>
-pkgname=('python2-pymupdf' 'python-pymupdf')
+pkgname=('python2-pymupdf')
_name='PyMuPDF'
pkgver=1.16.10
pkgrel=1
@@ -10,8 +10,8 @@ pkgdesc='Python bindings for MuPDF'
arch=('x86_64')
url='https://github.com/pymupdf/PyMuPDF'
license=('AGPL3')
-depends=('libjpeg-turbo' 'jbig2dec' 'openjpeg2' 'freetype2')
-makedepends=('python2-setuptools' 'python-setuptools' 'libmupdf>=1.16' 'libmupdf<1.17')
+depends=('python2' 'libjpeg-turbo' 'jbig2dec' 'openjpeg2' 'freetype2')
+makedepends=('python2-setuptools' 'libmupdf>=1.16' 'libmupdf<1.17')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-${pkgver}.tar.gz")
sha256sums=('d7893954f97fa6087629f3875f3be066dab51302e7c73f4c98c0516a8e2893fb')
@@ -24,25 +24,15 @@ prepare() {
build() {
cd "${_name}-${pkgver}"
python2 setup.py 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')
+package() {
cd "${_name}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
-
-package_python-pymupdf() {
- depends+=('python')
- cd "${_name}-${pkgver}"
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-}