[arch-commits] Commit in evince/trunk (PKGBUILD)

Jan Steffens heftig at gemini.archlinux.org
Wed Mar 30 19:42:39 UTC 2022


    Date: Wednesday, March 30, 2022 @ 19:42:38
  Author: heftig
Revision: 441004

42.1-1

Modified:
  evince/trunk/PKGBUILD

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++------------
 1 file changed, 33 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 19:40:41 UTC (rev 441003)
+++ PKGBUILD	2022-03-30 19:42:38 UTC (rev 441004)
@@ -1,8 +1,9 @@
 # Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
-pkgname=evince
-pkgver=41.4
+pkgbase=evince
+pkgname=(evince evince-lib-docs)
+pkgver=42.1
 pkgrel=1
 pkgdesc="Document viewer (PDF, PostScript, XPS, djvu, dvi, tiff, cbr, cbz, cb7, cbt)"
 url="https://wiki.gnome.org/Apps/Evince"
@@ -11,12 +12,10 @@
 depends=(gtk3 libgxps libspectre gsfonts poppler-glib djvulibre t1lib dconf libsecret libsynctex
          gsettings-desktop-schemas gnome-desktop libarchive gst-plugins-base-libs gspell libhandy
          gvfs)
-makedepends=(libnautilus-extension texlive-bin gobject-introspection docbook-xsl python gtk-doc git
-             meson appstream-glib yelp-tools)
-optdepends=('texlive-bin: DVI support')
-provides=(libev{document,view}3.so)
-groups=(gnome)
-_commit=27a1be1b599ac8e6021622739f79a25f24dfe635  # tags/41.4^0
+makedepends=(libnautilus-extension texlive-bin gobject-introspection gi-docgen git meson
+             appstream-glib yelp-tools)
+options=(debug)
+_commit=67084a4f4ec10445bf8f3ef2cf98cb0ccaabcb19  # tags/42.1^0
 source=("git+https://gitlab.gnome.org/GNOME/evince.git#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -27,9 +26,6 @@
 
 prepare() {
   cd evince
-
-  # Fix build with Meson 0.61
-  git cherry-pick -n 1060b24d051607f14220f148d2f7723b29897a54
 }
   
 build() {
@@ -41,6 +37,31 @@
   meson test -C build --print-errorlogs
 }
 
-package() {
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
+}
+
+package_evince() {
+  provides=(libev{document,view}3.so)
+  optdepends=('texlive-bin: DVI support')
+  groups=(gnome)
+
   meson install -C build --destdir "$pkgdir"
+
+  _pick lib-docs "$pkgdir"/usr/share/doc/lib*
 }
+
+package_evince-lib-docs() {
+  pkgdesc+=" (library API documentation)"
+  depends=()
+
+  mv lib-docs/* "$pkgdir"
+}
+
+# vim:set sw=2 et:



More information about the arch-commits mailing list