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

Eli Schwartz eschwartz at archlinux.org
Wed Jan 31 23:16:03 UTC 2018


    Date: Wednesday, January 31, 2018 @ 23:16:02
  Author: eschwartz
Revision: 288454

upgpkg: xreader 1.6.2-2

Revamp the build.
Enable all alternate document backends, mark them as optional.

Modified:
  xreader/trunk/PKGBUILD	(contents, properties)

----------+
 PKGBUILD |   47 +++++++++++++++++++++++++++++------------------
 1 file changed, 29 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-31 21:57:05 UTC (rev 288453)
+++ PKGBUILD	2018-01-31 23:16:02 UTC (rev 288454)
@@ -1,31 +1,42 @@
-# Maintainer:
+# $Id$
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
 # Contributor: Nate Simon <aurpkg (at natesimon.net)>
 
 pkgname=xreader
 pkgver=1.6.2
-pkgrel=1
-url='https://github.com/linuxmint/xreader'
+pkgrel=2
 pkgdesc="Document viewer for files like PDF and Postscript. X-Apps Project."
-arch=(x86_64)
-license=(GPL)
-depends=(poppler-glib djvulibre libspectre webkit2gtk)
-makedepends=(mate-common yelp-tools gobject-introspection caja nemo)
-optdepends=('nemo: nemo extension'
-    'caja: caja extension'
-    'texlive-bin: support for dvi files')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/linuxmint/${pkgname}/archive/${pkgver}.tar.gz")
+arch=('x86_64')
+url="https://github.com/linuxmint/xreader"
+license=('GPL')
+depends=('poppler-glib' 'webkit2gtk')
+optdepends=('djvulibre: support for djvu files'
+            'libgxps: support for xps files'
+            'libspectre: support for dvi and ps files'
+            'texlive-bin: support for dvi files')
+makedepends=('gobject-introspection' 'mate-common' 'yelp-tools' 'caja' 'nemo' 'djvulibre' 'libgxps' 'libspectre' 'texlive-bin')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
 sha256sums=('b925007199b156943a568e2da1b7058f99e328cdd3f03f447d280e9bf7356cab')
 
+prepare() {
+    cd "${srcdir}"/${pkgname}-${pkgver}
+
+    NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-    cd $pkgname-$pkgver
-    ./autogen.sh --prefix="/usr" \
-        --localstatedir="/var" \
-        --libexecdir="/usr/lib/${pkgname}" \
-        --enable-introspection
+    cd "${srcdir}"/${pkgname}-${pkgver}
+
+    ./configure --prefix="/usr" \
+                --localstatedir="/var" \
+                --libexecdir="/usr/lib/${pkgname}" \
+                --enable-introspection \
+                --enable-t1lib
     make
 }
 
 package(){
-    cd $pkgname-$pkgver
-    make DESTDIR="$pkgdir" install
+    cd "${srcdir}"/${pkgname}-${pkgver}
+
+    make DESTDIR="${pkgdir}" install
 }


Property changes on: xreader/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list