#Packager: Panagiotis Papasotiriou
pkgname=mupdf pkgver=1.22.2 pkgrel=1pp source=("https://mupdf.com/downloads/archive/$pkgname-$pkgver-source.tar.gz" "mupdf-icons.tgz" "mupdf-gl.desktop") sourcetemplate=https://people.salixos.org/papasot/salix/$pkgname url="https://mupdf.com" # No docs specified here, because mupdf's makefile will install them in # /usr/share/doc/mupdf anyway: docs=() doinst() { # update desktop database if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi # update the mime database if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mupdf (a lightweight PDF, XPS, and E-book viewer and toolkit)" "The renderer in MuPDF is tailored for high quality anti-aliased" "graphics. MuPDF renders text with metrics and spacing accurate to" "within fractions of a pixel for the highest fidelity in reproducing" "the look of a printed page on screen." "" "HomePage: https://mupdf.com" ) build() { cd $SRC/$pkgname-$pkgver-source # Clipboard/Unicode support needs building with thirdparty freeglut: export build=release shared=yes USE_SYSTEM_LIBS=no prefix=/usr\ libdir=/usr/lib${LIBDIRSUFFIX};\ make -j $numjobs || exit 1 make install DESTDIR=$PKG ln $startdir/pkg/usr/bin/mupdf-x11 $startdir/pkg/usr/bin/mupdf for size in 16 24 32 48 64 128; do trgdir=$startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps mkdir -p $trgdir cp $startdir/src/mupdf-$size.png $trgdir/mupdf.png done trgdir=$startdir/pkg/usr/share/icons/hicolor/scalable/apps mkdir -p $trgdir cp -f docs/logo/mupdf-logo.svg $trgdir/mupdf.svg trgdir=$startdir/pkg/usr/share/applications mkdir -p $trgdir cp -f $startdir/src/mupdf-gl.desktop $trgdir }