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

Bruno Pagani archange at gemini.archlinux.org
Sun Nov 14 11:12:16 UTC 2021


    Date: Sunday, November 14, 2021 @ 11:12:16
  Author: archange
Revision: 1047370

Packager removal rebuild + PKGBUILD revamp

Modified:
  xreader/trunk/PKGBUILD

----------+
 PKGBUILD |   54 +++++++++++++++++++++++++-----------------------------
 1 file changed, 25 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-14 10:40:57 UTC (rev 1047369)
+++ PKGBUILD	2021-11-14 11:12:16 UTC (rev 1047370)
@@ -1,48 +1,44 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
 # Contributor: Nate Simon <aurpkg (at natesimon.net)>
 
 pkgname=xreader
 pkgver=3.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Document viewer for files like PDF and Postscript. X-Apps Project."
-arch=('x86_64')
+arch=(x86_64)
 url="https://github.com/linuxmint/${pkgname}"
-license=('GPL')
-groups=('x-apps')
-depends=('poppler-glib' 'webkit2gtk' 'xapps')
+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'
             'mathjax2: support for math in epub files'
             'texlive-bin: support for dvi files')
-makedepends=('meson' 'samurai' 'intltool' 'itstool' 'gobject-introspection' 'djvulibre'
-             'libgxps' 'libspectre' 'texlive-bin')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+makedepends=(meson samurai intltool itstool gobject-introspection djvulibre
+             libgxps libspectre texlive-bin)
+source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha256sums=('a2e32274787723e81afeb62390c92b64f0ad222e3ca6295704535e5c499fdd28')
 b2sums=('3534f16b16ef73dfe58c62a5dc82bf13f7f68bea4a7646e65e612af6a6ff6250f3989c999f039d6d7044eeb30791554d660ee159e7f064e810f81d0e8f6a3f87')
 
 build() {
-    mkdir -p "${srcdir}"/${pkgname}-${pkgver}/build
-    cd "${srcdir}"/${pkgname}-${pkgver}/build
-
-    meson --prefix=/usr \
-          --libexecdir=lib/${pkgname} \
-          --buildtype=plain \
-          -Dmathjax-directory=/usr/share/mathjax2 \
-          -Dcomics=true \
-          -Ddjvu=true \
-          -Ddvi=true \
-          -Dt1lib=true \
-          -Dpixbuf=true \
-          -Dintrospection=true \
-          -Dhelp_files=true \
-          -Dtests=false \
-          ..
-    samu
+  mkdir -p build
+  cd build
+  arch-meson --libexecdir=lib/${pkgname} \
+    -Dmathjax-directory=/usr/share/mathjax2 \
+    -Dcomics=true \
+    -Ddjvu=true \
+    -Ddvi=true \
+    -Dt1lib=true \
+    -Dpixbuf=true \
+    -Dhelp_files=true \
+    -Dintrospection=true \
+    ../${pkgname}-${pkgver}
+  samu
 }
 
 package(){
-    cd "${srcdir}"/${pkgname}-${pkgver}/build
-
-    DESTDIR="${pkgdir}" samu install
+  cd build
+  DESTDIR="${pkgdir}" samu install
 }



More information about the arch-commits mailing list