[arch-commits] Commit in gitg/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Apr 5 22:40:35 UTC 2018


    Date: Thursday, April 5, 2018 @ 22:40:34
  Author: heftig
Revision: 321003

archrelease: copy trunk to staging-x86_64

Added:
  gitg/repos/staging-x86_64/
  gitg/repos/staging-x86_64/PKGBUILD
    (from rev 321002, gitg/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: gitg/repos/staging-x86_64/PKGBUILD (from rev 321002, gitg/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-04-05 22:40:34 UTC (rev 321003)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=gitg
+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' 'glade' 'git' 'meson' 'gtk-doc')
+groups=('gnome-extra')
+_commit=9c7859381b8eb5f0e8c00bca120802148ea3bc8e  # master
+source=("git+https://git.gnome.org/browse/gitg#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+}
+
+build() {
+  arch-meson $pkgname build -D docs=true
+  ninja -C build
+}
+
+package() {
+  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