* update mupdf to 1.24.2-2

This commit is contained in:
Alexander Baldeck 2024-06-22 17:01:02 +02:00
parent 44cdcd8490
commit e0e391a543
2 changed files with 20 additions and 2 deletions

View File

@ -9,7 +9,7 @@
pkgbase=mupdf
pkgname=(libmupdf mupdf mupdf-gl mupdf-tools python-mupdf)
pkgver=1.24.1
pkgver=1.24.2
pkgrel=2
pkgdesc='Lightweight PDF and XPS viewer'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
@ -49,19 +49,24 @@ source=(
git+https://github.com/ArtifexSoftware/extract.git
$pkgbase.desktop
$pkgbase.xpm
$pkgbase.pc
$pkgbase-1.23.9-cpp_ldflags.patch
$pkgbase-1.23.9-install_targets.patch
)
sha256sums=('bba6c0b3f808a5233807f3777eb98f03d7740aa2125c1dd6c412180f4cd8a0b2'
sha256sums=('3a5664f06e94cddeaf611b1d7f019b7c8f780298c35bf500d1d98c9d7e40210a'
'SKIP'
'SKIP'
'SKIP'
'ccff66979249bd4ab4ba8918660f194eb90eb0ae231b16e36a6cecdcf471883f'
'a435f44425f5432c074dee745d8fbaeb879038ec1f1ec64f037c74662f09aca8'
'bb797ac84edc9856fa828f87e9be684714b7ab2c8bca3372a81fbfa0da018ac4'
'152222c0bc066404d9e38be7abbba20748b0a4bbc9cb30403d19e3b176ab257f'
'ceb2b16a12bf193d514969f995dfca4c2d12d489c2690928db2db4afe09f6c8c')
prepare() {
# upstream does not provide a pkg-config integration
sed -e "s/VERSION/$pkgver/" -i $pkgbase.pc
cd $pkgbase
# use our LDFLAGS when building the C++ bindings to have full RELRO
@ -134,6 +139,7 @@ package_libmupdf() {
cd $pkgbase
make prefix=/usr DESTDIR="$pkgdir" SO_INSTALL_MODE=755 install-shared-c install-shared-c++
install -vDm 0644 ../$pkgbase.pc -t "$pkgdir"/usr/lib/pkgconfig/
}
package_python-mupdf() {

12
mupdf/mupdf.pc Normal file
View File

@ -0,0 +1,12 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: mupdf
Description: Library for rendering PDF documents
Requires.private: freetype2
Version: VERSION
Libs: -L${libdir} -lmupdf
Libs.private: -lmujs -lgumbo -lopenjp2 -ljbig2dec -ljpeg -lz -lm
Cflags: -I${includedir}