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

Jan Steffens heftig at archlinux.org
Thu Apr 5 22:39:59 UTC 2018


    Date: Thursday, April 5, 2018 @ 22:39:59
  Author: heftig
Revision: 321002

3.26+23+g9c785938-1

Modified:
  gitg/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-05 22:33:30 UTC (rev 321001)
+++ PKGBUILD	2018-04-05 22:39:59 UTC (rev 321002)
@@ -2,17 +2,17 @@
 # Maintainer: Eric Bélanger <eric at archlinux.org>
 
 pkgname=gitg
-pkgver=3.26
+pkgver=3.26+23+g9c785938
 pkgrel=1
 pkgdesc='A GIT repository viewer based on GTK+'
 arch=('x86_64')
 url='https://git.gnome.org/browse/gitg/'
 license=('GPL')
-depends=('gtksourceview3' 'git' 'desktop-file-utils' 'libgit2-glib' 'libgee' 'webkit2gtk' 'libpeas' 'gtkspell3'
-         'python-gobject')
-makedepends=('intltool' 'vala' 'gobject-introspection' 'gnome-common' 'glade' 'git')
+depends=('gtksourceview3' 'git' 'desktop-file-utils' 'libgit2-glib' 'libgee' 'webkit2gtk'
+         'libpeas' 'gtkspell3' 'python-gobject')
+makedepends=('intltool' 'vala' 'gobject-introspection' 'glade' 'git' 'meson' 'gtk-doc')
 groups=('gnome-extra')
-_commit=096e96e3d13f50cd6de8b289a54362d54f502810  # tags/v3.26^0
+_commit=9c7859381b8eb5f0e8c00bca120802148ea3bc8e  # master
 source=("git+https://git.gnome.org/browse/gitg#commit=$_commit")
 sha256sums=('SKIP')
 
@@ -23,19 +23,23 @@
 
 prepare() {
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgname
-  ./configure --prefix=/usr --enable-glade-catalog
-
-  # Don't overlink
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
-  make
+  arch-meson $pkgname build -D docs=true
+  ninja -C build
 }
 
 package() {
-  cd $pkgname
-  make DESTDIR="${pkgdir}" install
+  DESTDIR="$pkgdir" ninja -C build install
+
+  # Fix up icon names
+  local f d
+  for f in "$pkgdir"/usr/share/icons/hicolor/*/apps/*; do
+    d="${f%/*}"
+    mv "$f" "$d/${f##*_}"
+  done
+
+  python -m compileall "$pkgdir/usr/lib/python3.6"
+  python -O -m compileall "$pkgdir/usr/lib/python3.6"
 }



More information about the arch-commits mailing list