Mail archive
alpine-aports

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

From: Alex Raschi <raschi.alex_at_gmail.com>
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
_at_@ -3,14 +3,24 @@
 # Maintainer: Daniel Sabogal <dsabogalcc_at_gmail.com>
 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"
_at_@ -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:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Aug 23 2018 - 11:46:18 GMT