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

Jan Steffens heftig at archlinux.org
Wed Aug 9 07:38:22 UTC 2017


    Date: Wednesday, August 9, 2017 @ 07:38:21
  Author: heftig
Revision: 301792

0.5.1-1

Modified:
  libgepub/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-09 06:48:57 UTC (rev 301791)
+++ PKGBUILD	2017-08-09 07:38:21 UTC (rev 301792)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=libgepub
-pkgver=0.4+10+g0da0ba3
+pkgver=0.5.1
 pkgrel=1
 pkgdesc="Simple library to read epub files using glib"
 url="https://git.gnome.org/browse/libgepub"
@@ -9,8 +9,8 @@
 arch=(i686 x86_64)
 license=(LGPL)
 depends=(webkit2gtk libarchive)
-makedepends=(git gnome-common gobject-introspection)
-_commit=0da0ba35e21cc6a09149d7bf827576fbfd2556e6  # master
+makedepends=(git gtk-doc gobject-introspection meson)
+_commit=140312fc2fc01c5f116c85b7e87b8b5cb088dd2e  # tags/0.5.1^0
 source=("git+https://git.gnome.org/browse/libgepub#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -20,18 +20,22 @@
 }
 
 prepare() {
+  mkdir build
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgname
-  ./configure --prefix=/usr
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-  make
+  cd build
+  meson --prefix=/usr --buildtype=release ../$pkgname
+  ninja
 }
 
+check() {
+  cd build
+  mesontest
+}
+
 package() {
-  cd $pkgname
-  make DESTDIR="${pkgdir}" install
+  cd build
+  DESTDIR="$pkgdir" ninja install
 }



More information about the arch-commits mailing list