Subject: [alpine-aports] [PATCH] main/mupdf: fix copy when selecting text with right mouse button (mupdf-gl)

From: Alex Raschi <[email-masked]>
Date: Thu, 23 Aug 2018 11:46:18 +0200

---
 main/mupdf/APKBUILD | 23 +++++++++++++++++++----
 1 file changed, 19 insertions(+), 4 deletions(-)

diff --git a/main/mupdf/APKBUILD b/main/mupdf/APKBUILD
index fef55343dd..d307981f81 100644
--- a/main/mupdf/APKBUILD
+++ b/main/mupdf/APKBUILD
@@ -3,14 +3,24 @@
 # Maintainer: Daniel Sabogal <[email-masked]>
 pkgname=mupdf
 pkgver=1.13.0
-pkgrel=0
+pkgrel=1
 pkgdesc="Lightweight PDF and XPS viewer"
 url="https://mupdf.com"
 arch="all"
 license="AGPL-3.0-or-later"
 depends=""
-makedepends="freeglut-dev freetype-dev harfbuzz-dev jbig2dec-dev jpeg-dev
-	libx11-dev libxext-dev openjpeg-dev"
+makedepends="freetype-dev
+	harfbuzz-dev
+	jbig2dec-dev
+	jpeg-dev
+	openjpeg-dev
+	zlib-dev
+	libx11-dev
+	libxext-dev
+	libxrandr-dev
+	libxi-dev
+	mesa-dev
+	glu-dev"
 subpackages="$pkgname-doc $pkgname-dev $pkgname-x11:_x11
 	$pkgname-gl:_gl $pkgname-tools:_tools"
 options="!check"
@@ -37,8 +47,13 @@ builddir="$srcdir/$pkgname-$pkgver-source"
 prepare() {
 	default_prepare
 
+	# freeglut and lcms2 are mupdf-specific forks:
+	# https://src.fedoraproject.org/rpms/mupdf/blob/master/f/mupdf.spec#_15
 	local file; for file in thirdparty/*; do
-		[ "${file##*/}" != "mujs" ] && rm -rf "$file"
+		[ "${file##*/}" != "freeglut" ] && \
+		[ "${file##*/}" != "lcms2" ] && \
+		[ "${file##*/}" != "mujs" ] && \
+			rm -rf "$file"
 	done
 }
 
-- 
2.18.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---