Skip to content
Snippets Groups Projects
Verified Commit 9e7f9c55 authored by Robin Candau's avatar Robin Candau
Browse files

upgpkg: 1.24.1-1: New upstream release + Switch to git sources

parent 585af0aa
No related branches found
No related tags found
No related merge requests found
pkgbase = mupdf
pkgdesc = Lightweight PDF and XPS viewer
pkgver = 1.24.0
pkgver = 1.24.1
pkgrel = 1
url = https://mupdf.com/
arch = x86_64
......@@ -10,6 +10,7 @@ pkgbase = mupdf
makedepends = desktop-file-utils
makedepends = freeglut
makedepends = freetype2
makedepends = git
makedepends = glu
makedepends = gumbo-parser
makedepends = harfbuzz
......@@ -26,12 +27,18 @@ pkgbase = mupdf
makedepends = tesseract
makedepends = zlib
options = staticlibs
source = https://mupdf.com/downloads/archive/mupdf-1.24.0-source.tar.gz
source = git+https://github.com/ArtifexSoftware/mupdf.git#tag=1.24.1
source = git+https://github.com/ArtifexSoftware/mujs.git
source = git+https://github.com/ArtifexSoftware/thirdparty-lcms2.git
source = git+https://github.com/ArtifexSoftware/extract.git
source = mupdf.desktop
source = mupdf.xpm
source = mupdf-1.23.9-cpp_ldflags.patch
source = mupdf-1.23.9-install_targets.patch
sha256sums = 52f63003a6f4d89f234e9edfb4b4c83d216b83aaeb323cfda6047cb754599ae0
sha256sums = bba6c0b3f808a5233807f3777eb98f03d7740aa2125c1dd6c412180f4cd8a0b2
sha256sums = SKIP
sha256sums = SKIP
sha256sums = SKIP
sha256sums = ccff66979249bd4ab4ba8918660f194eb90eb0ae231b16e36a6cecdcf471883f
sha256sums = a435f44425f5432c074dee745d8fbaeb879038ec1f1ec64f037c74662f09aca8
sha256sums = 152222c0bc066404d9e38be7abbba20748b0a4bbc9cb30403d19e3b176ab257f
......@@ -67,7 +74,7 @@ pkgname = mupdf-gl
depends = libgl
depends = libmupdf
depends = openssl
provides = mupdf=1.24.0
provides = mupdf=1.24.1
conflicts = mupdf
pkgname = mupdf-tools
......
......@@ -8,7 +8,7 @@
pkgbase=mupdf
pkgname=(libmupdf mupdf mupdf-gl mupdf-tools python-mupdf)
pkgver=1.24.0
pkgver=1.24.1
pkgrel=1
pkgdesc='Lightweight PDF and XPS viewer'
arch=('x86_64')
......@@ -20,6 +20,7 @@ makedepends=(
'desktop-file-utils'
'freeglut'
'freetype2'
'git'
'glu'
'gumbo-parser'
'harfbuzz'
......@@ -40,28 +41,51 @@ makedepends=(
)
options=('staticlibs')
source=(
"https://mupdf.com/downloads/archive/$pkgbase-${pkgver/_/}-source.tar.gz"
git+https://github.com/ArtifexSoftware/mupdf.git#tag=$pkgver
git+https://github.com/ArtifexSoftware/mujs.git
git+https://github.com/ArtifexSoftware/thirdparty-lcms2.git
git+https://github.com/ArtifexSoftware/extract.git
$pkgbase.desktop
$pkgbase.xpm
$pkgbase-1.23.9-cpp_ldflags.patch
$pkgbase-1.23.9-install_targets.patch
)
sha256sums=('52f63003a6f4d89f234e9edfb4b4c83d216b83aaeb323cfda6047cb754599ae0'
sha256sums=('bba6c0b3f808a5233807f3777eb98f03d7740aa2125c1dd6c412180f4cd8a0b2'
'SKIP'
'SKIP'
'SKIP'
'ccff66979249bd4ab4ba8918660f194eb90eb0ae231b16e36a6cecdcf471883f'
'a435f44425f5432c074dee745d8fbaeb879038ec1f1ec64f037c74662f09aca8'
'152222c0bc066404d9e38be7abbba20748b0a4bbc9cb30403d19e3b176ab257f'
'ceb2b16a12bf193d514969f995dfca4c2d12d489c2690928db2db4afe09f6c8c')
prepare() {
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
# use our LDFLAGS when building the C++ bindings to have full RELRO
patch -Np1 -i ../$pkgbase-1.23.9-cpp_ldflags.patch
# alter install-shared-* targets to not call one another (which fails on installing headers twice) and install libmupdfcpp.so with soname postfix
patch -Np1 -i ../$pkgbase-1.23.9-install_targets.patch
# remove bundled packages, we want our system libraries
rm -rf thirdparty/{curl,freeglut,freetype,gumbo-parser,harfbuzz,jbig2dec,leptonica,libjpeg,openjpeg,tesseract,zlib}
# init submodules and disable the ones we don't need, we want our system libraries instead
git submodule init
rm -rvf thirdparty/{curl,freeglut,freetype,gumbo-parser,harfbuzz,jbig2dec,leptonica,libjpeg,openjpeg,tesseract,zlib}
git submodule deinit thirdparty/curl
git submodule deinit thirdparty/freeglut
git submodule deinit thirdparty/freetype
git submodule deinit thirdparty/gumbo-parser
git submodule deinit thirdparty/harfbuzz
git submodule deinit thirdparty/jbig2dec
git submodule deinit thirdparty/leptonica
git submodule deinit thirdparty/libjpeg
git submodule deinit thirdparty/openjpeg
git submodule deinit thirdparty/tesseract
git submodule deinit thirdparty/zlib
# update required third party libraries
git config submodule.thirdparty/mujs.url "$srcdir/mujs" # is hardcoded and needs a patch to debundle
git config submodule.thirdparty/lcms2.url "$srcdir/thirdparty-lcms2" # requires fork (not the version we are packaging)
git config submodule.thirdparty/extract.url "$srcdir/extract" # we do not package this one
git -c protocol.file.allow=always submodule update
{
printf "LINUX_OR_OPENBSD := yes\n" # required so that Makefile sets soname symlink
......@@ -85,7 +109,7 @@ prepare() {
}
build() {
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
# Enforce -j1 to avoid concurrency issue during build
make -j1 VENV_FLAG= shared=yes build=release libs apps c++ python
}
......@@ -106,7 +130,7 @@ package_libmupdf() {
'zlib'
)
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
make prefix=/usr DESTDIR="$pkgdir" SO_INSTALL_MODE=755 install-shared-c install-shared-c++
}
......@@ -119,7 +143,7 @@ package_python-mupdf() {
'python'
)
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
make prefix=/usr DESTDIR="$pkgdir" SO_INSTALL_MODE=755 install-shared-python
}
......@@ -133,7 +157,7 @@ package_mupdf() {
'libxext'
)
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
install -vDm 0755 build/shared-release/$pkgbase-x11 "$pkgdir"/usr/bin/$pkgbase
......@@ -158,7 +182,7 @@ package_mupdf-gl() {
'openssl'
)
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
install -vDm 0755 build/shared-release/$pkgbase-gl "$pkgdir"/usr/bin/$pkgbase
......@@ -178,7 +202,7 @@ package_mupdf-tools() {
'openssl'
)
cd $pkgbase-${pkgver/_/}-source
cd $pkgbase
install -vDm 0755 build/shared-release/{mutool,muraster} -t "$pkgdir"/usr/bin/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment