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

Jan Steffens heftig at archlinux.org
Wed Aug 9 18:24:56 UTC 2017


    Date: Wednesday, August 9, 2017 @ 18:24:55
  Author: heftig
Revision: 301813

0.3.0-1

Modified:
  libgxps/trunk/PKGBUILD

----------+
 PKGBUILD |   28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-09 18:22:03 UTC (rev 301812)
+++ PKGBUILD	2017-08-09 18:24:55 UTC (rev 301813)
@@ -3,15 +3,15 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=libgxps
-pkgver=0.2.5+1+g764ae1e
+pkgver=0.3.0
 pkgrel=1
 pkgdesc="XPS Documents library"
 url="https://wiki.gnome.org/Projects/libgxps"
 arch=(i686 x86_64)
 license=(GPL2)
-depends=(cairo libarchive libjpeg-turbo libtiff lcms2)
-makedepends=(gobject-introspection gtk-doc git)
-_commit=764ae1e1e22c3f1bb58543aa40fa80488ee49a47  # master
+depends=(gtk3 libarchive libjpeg-turbo libtiff lcms2)
+makedepends=(gobject-introspection gtk-doc git meson)
+_commit=762b3026bb3f29cdc67f7816ef3d34d7d9a243ec  # tags/0.3.0^0
 source=("git+https://git.gnome.org/browse/libgxps#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -21,21 +21,25 @@
 }
 
 prepare() {
+  mkdir build
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
 }
-  
 
 build() {
-  cd $pkgname
-  ./configure --prefix=/usr --disable-static --enable-gtk-doc
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+  cd build
+  meson --prefix=/usr --buildtype=release ../$pkgname \
+    -Denable-man=true -Denable-gtk-doc=true
+  ninja
 }
 
+check() {
+  cd build
+  mesontest
+}
+
 package() {
-  cd $pkgname
-  make DESTDIR="$pkgdir" install
+  cd build
+  DESTDIR="$pkgdir" ninja install
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list