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

Jan Steffens heftig at archlinux.org
Wed Oct 10 06:45:42 UTC 2018


    Date: Wednesday, October 10, 2018 @ 06:45:41
  Author: heftig
Revision: 336087

3.30-1

Modified:
  gitg/trunk/PKGBUILD

----------+
 PKGBUILD |   47 ++++++++++++++++++++++++++---------------------
 1 file changed, 26 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-10 06:28:05 UTC (rev 336086)
+++ PKGBUILD	2018-10-10 06:45:41 UTC (rev 336087)
@@ -1,34 +1,39 @@
-# Maintainer: Eric Bélanger <eric at archlinux.org>
+# Contributor: Eric Bélanger <eric at archlinux.org>
 
 pkgname=gitg
-pkgver=3.26.0
-pkgrel=2
+pkgver=3.30
+pkgrel=1
 epoch=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' 'gobject-introspection' 'gnome-common')
-source=("https://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz")
-sha256sums=('26730d437d6a30d6e341b9e8da99d2134dce4b96022c195609f45062f82b54d5')
+pkgdesc="GNOME GUI client to view git repositories"
+url="https://wiki.gnome.org/Apps/Gitg"
+arch=(x86_64)
+license=(GPL)
+depends=(gtksourceview3 git libgit2-glib libgee webkit2gtk libpeas gtkspell3 python-gobject)
+makedepends=(intltool gobject-introspection git meson vala)
+_commit=1d306388c4c8562d5225d02a737d4636fff24ccf  # tags/v3.30^0
+source=("git+https://gitlab.gnome.org/GNOME/gitg.git#commit=$_commit")
+sha256sums=('SKIP')
 
-# Don't convert back to Git sources until compilation with current Vala is fixed (FS#58215)
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
 
 prepare() {
-  cd $pkgname-$pkgver
+  cd $pkgname
 }
 
 build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
-  make
+  arch-meson $pkgname build
+  ninja -C build
 }
 
+check() {
+  meson test -C build
+}
+
 package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  mv "$pkgdir"/usr/share/{appdata,metainfo}
+  DESTDIR="$pkgdir" meson install -C build
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
 }



More information about the arch-commits mailing list