Date: Thursday, May 11, 2023 @ 19:46:42
  Author: eworm
Revision: 1459982

archrelease: copy trunk to community-testing-x86_64

Added:
  mupdf/repos/community-testing-x86_64/
  mupdf/repos/community-testing-x86_64/PKGBUILD
    (from rev 1459981, mupdf/trunk/PKGBUILD)
  mupdf/repos/community-testing-x86_64/mupdf.desktop
    (from rev 1459981, mupdf/trunk/mupdf.desktop)
  mupdf/repos/community-testing-x86_64/mupdf.xpm
    (from rev 1459981, mupdf/trunk/mupdf.xpm)

---------------+
 PKGBUILD      |  116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mupdf.desktop |   15 +++++++
 2 files changed, 131 insertions(+)

Copied: mupdf/repos/community-testing-x86_64/PKGBUILD (from rev 1459981, 
mupdf/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2023-05-11 19:46:42 UTC (rev 1459982)
@@ -0,0 +1,116 @@
+# Maintainer: Christian Hesse <[email protected]>
+# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
+# Contributor: Brad Fanella <[email protected]>
+# Contributor: Stefan Husmann <[email protected]>
+# Contributor: Pierre-Paul Paquin <[email protected]>
+# Contributor: xduugu
+
+pkgbase=mupdf
+pkgname=(libmupdf mupdf mupdf-gl mupdf-tools)
+pkgver=1.22.1
+pkgrel=1
+pkgdesc='Lightweight PDF and XPS viewer'
+arch=('x86_64')
+url='https://mupdf.com/'
+license=('AGPL3')
+makedepends=('desktop-file-utils' 'freetype2' 'freeglut' 'glu' 'harfbuzz'
+             'jbig2dec' 'libjpeg' 'mesa-libgl' 'openjpeg2' 'libxext'
+             'gumbo-parser')
+# we need static libs for zathura-pdf-mupdf
+options=('staticlibs')
+source=("https://mupdf.com/downloads/archive/mupdf-${pkgver/_/}-source.tar.gz";
+        'mupdf.desktop'
+        'mupdf.xpm')
+sha256sums=('d3df26f93d6b6c628bfc8cb184378a8e22feb50198909fedeb424e977c7b339d'
+            'ccff66979249bd4ab4ba8918660f194eb90eb0ae231b16e36a6cecdcf471883f'
+            'a435f44425f5432c074dee745d8fbaeb879038ec1f1ec64f037c74662f09aca8')
+
+prepare() {
+  cd $pkgbase-${pkgver/_/}-source
+
+  # remove bundled packages, we want our system libraries
+  rm -rf thirdparty/{freeglut,freetype,harfbuzz,jbig2dec,libjpeg,openjpeg,zlib}
+}
+
+build() {
+  CFLAGS+=' -fPIC'
+  CXXFLAGS+=' -fPIC'
+  export CFLAGS CXXFLAGS
+  
+  USE_SYSTEM_LIBS='yes'
+  export USE_SYSTEM_LIBS
+
+  export CFLAGS+=' -ffat-lto-objects'
+
+  cd $pkgbase-${pkgver/_/}-source
+  make build=release libs apps
+}
+
+package_libmupdf() {
+  pkgdesc='Library for Lightweight PDF and XPS viewer'
+
+  cd $pkgbase-${pkgver/_/}-source
+
+  make build=release prefix="$pkgdir"/usr install
+
+  rm -rf "$pkgdir"/usr/{bin,share/man}
+  mv "$pkgdir"/usr/share/doc/mupdf "$pkgdir"/usr/share/doc/libmupdf
+
+  find "$pkgdir"/usr/include "$pkgdir"/usr/share "$pkgdir"/usr/lib \
+    -type f -exec chmod 0644 {} +
+}
+
+package_mupdf() {
+  pkgdesc='Lightweight PDF and XPS viewer'
+  depends=('desktop-file-utils' 'freetype2' 'harfbuzz' 'jbig2dec'
+           'libjpeg' 'openjpeg2' 'openssl' 'libxext' 'gumbo-parser')
+
+  cd $pkgbase-${pkgver/_/}-source
+
+  install -D -m0755 build/release/mupdf-x11 "$pkgdir"/usr/bin/mupdf
+
+  install -D -m0644 docs/man/mupdf.1 "$pkgdir"/usr/share/man/man1/mupdf.1
+
+  install -d "$pkgdir"/usr/share/doc/mupdf
+  install -m0644  README COPYING CHANGES "$pkgdir"/usr/share/doc/mupdf
+
+  install -D -m0644 ../mupdf.desktop 
"$pkgdir"/usr/share/applications/mupdf.desktop
+  install -D -m0644 ../mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
+}
+
+package_mupdf-gl() {
+  pkgdesc='Lightweight PDF and XPS viewer with OpenGL backend'
+  conflicts=('mupdf')
+  provides=("mupdf=${pkgver}")
+  depends=('desktop-file-utils' 'freetype2' 'freeglut' 'glu' 'harfbuzz' 
'jbig2dec'
+           'libjpeg' 'openjpeg2' 'openssl' 'gumbo-parser')
+
+  cd $pkgbase-${pkgver/_/}-source
+
+  install -D -m0755 build/release/mupdf-gl "$pkgdir"/usr/bin/mupdf
+
+  install -D -m0644 docs/man/mupdf.1 "$pkgdir"/usr/share/man/man1/mupdf.1
+
+  install -d "$pkgdir"/usr/share/doc/mupdf
+  install -m0644 README COPYING CHANGES "$pkgdir"/usr/share/doc/mupdf
+
+  install -D -m0644 ../mupdf.desktop 
"$pkgdir"/usr/share/applications/mupdf.desktop
+  install -D -m0644 ../mupdf.xpm "$pkgdir"/usr/share/pixmaps/mupdf.xpm
+}
+
+package_mupdf-tools() {
+  pkgdesc='Tools for Lightweight PDF and XPS viewer'
+  depends=('mupdf')
+  depends=('freetype2' 'jbig2dec' 'libjpeg' 'openjpeg2' 'harfbuzz' 'openssl'
+           'gumbo-parser')
+
+  cd $pkgbase-${pkgver/_/}-source
+
+  install -D -m0755 build/release/mutool "$pkgdir"/usr/bin/mutool
+  install -D -m0755 build/release/muraster "$pkgdir"/usr/bin/muraster
+
+  install -D -m0644 docs/man/mutool.1 "$pkgdir"/usr/share/man/man1/mutool.1
+
+  install -d "$pkgdir"/usr/share/doc/mupdf-tools
+  install -m0644 README COPYING CHANGES "$pkgdir"/usr/share/doc/mupdf-tools
+}

Copied: mupdf/repos/community-testing-x86_64/mupdf.desktop (from rev 1459981, 
mupdf/trunk/mupdf.desktop)
===================================================================
--- community-testing-x86_64/mupdf.desktop                              (rev 0)
+++ community-testing-x86_64/mupdf.desktop      2023-05-11 19:46:42 UTC (rev 
1459982)
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Name=MuPDF
+GenericName=PDF file viewer
+Exec=mupdf %f
+TryExec=mupdf
+Icon=mupdf
+Terminal=false
+Type=Application
+MimeType=application/epub+zip;application/pdf;application/x-pdf;application/x-cbz;application/oxps;application/vnd.ms-xpsdocument;image/jpeg;image/pjpeg;image/png;image/tiff;image/x-tiff
+Categories=Viewer;Graphics;
+Actions=View
+NoDisplay=true
+[Desktop Action View]
+Name=View with mupdf
+Exec=mupdf %f

Copied: mupdf/repos/community-testing-x86_64/mupdf.xpm (from rev 1459981, 
mupdf/trunk/mupdf.xpm)
===================================================================
(Binary files differ)

Reply via email to