[arch-commits] Commit in xreader/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Sun Jun 30 17:43:55 UTC 2019
Date: Sunday, June 30, 2019 @ 17:43:54
Author: eschwartz
Revision: 486454
upgpkg: xreader 2.2.1-1
upstream release
- port to meson
- add configurable mathjax support
enable pixbuf backend
Modified:
xreader/trunk/PKGBUILD
----------+
PKGBUILD | 43 ++++++++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 19 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-06-30 17:38:54 UTC (rev 486453)
+++ PKGBUILD 2019-06-30 17:43:54 UTC (rev 486454)
@@ -2,40 +2,45 @@
# Contributor: Nate Simon <aurpkg (at natesimon.net)>
pkgname=xreader
-pkgver=2.0.2
+pkgver=2.2.1
pkgrel=1
pkgdesc="Document viewer for files like PDF and Postscript. X-Apps Project."
arch=('x86_64')
-url="https://github.com/linuxmint/xreader"
+url="https://github.com/linuxmint/${pkgname}"
license=('GPL')
+groups=('x-apps')
depends=('poppler-glib' 'webkit2gtk' 'xapps')
optdepends=('djvulibre: support for djvu files'
'libgxps: support for xps files'
'libspectre: support for dvi and ps files'
+ 'mathjax: support for math in epub files'
'texlive-bin: support for dvi files')
-makedepends=('gobject-introspection' 'mate-common' 'yelp-tools' 'djvulibre' 'libgxps' 'libspectre' 'texlive-bin')
+makedepends=('meson' 'intltool' 'itstool' 'gobject-introspection' 'djvulibre'
+ 'libgxps' 'libspectre' 'texlive-bin')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('b79d17d7b4701a2f2d437d1ed7a93b76c617ea093d394ea14aab0a11073aa90c')
+sha256sums=('e5efc1ff17708513f22c6110f91ac60acb51e33ebb5a32372091944e1daaa7bf')
-prepare() {
- cd "${srcdir}"/${pkgname}-${pkgver}
-
- NOCONFIGURE=1 ./autogen.sh
-}
-
build() {
- cd "${srcdir}"/${pkgname}-${pkgver}
+ mkdir -p "${srcdir}"/${pkgname}-${pkgver}/build
+ cd "${srcdir}"/${pkgname}-${pkgver}/build
- ./configure --prefix="/usr" \
- --localstatedir="/var" \
- --libexecdir="/usr/lib/${pkgname}" \
- --enable-introspection \
- --enable-t1lib
- make
+ meson --prefix=/usr \
+ --libexecdir=lib/${pkgname} \
+ --buildtype=plain \
+ -Dmathjax-directory=/usr/share/mathjax \
+ -Dcomics=true \
+ -Ddjvu=true \
+ -Ddvi=true \
+ -Dt1lib=true \
+ -Dpixbuf=true \
+ -Dintrospection=true \
+ -Dhelp_files=true \
+ ..
+ ninja
}
package(){
- cd "${srcdir}"/${pkgname}-${pkgver}
+ cd "${srcdir}"/${pkgname}-${pkgver}/build
- make DESTDIR="${pkgdir}" install
+ DESTDIR="${pkgdir}" ninja install
}
More information about the arch-commits
mailing list