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

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


    Date: Wednesday, October 10, 2018 @ 06:45:56
  Author: heftig
Revision: 336088

archrelease: copy trunk to extra-x86_64

Added:
  gitg/repos/extra-x86_64/PKGBUILD
    (from rev 336087, gitg/trunk/PKGBUILD)
Deleted:
  gitg/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 39 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-10-10 06:45:41 UTC (rev 336087)
+++ PKGBUILD	2018-10-10 06:45:56 UTC (rev 336088)
@@ -1,35 +0,0 @@
-# $Id$
-# Maintainer: Eric Bélanger <eric at archlinux.org>
-
-pkgname=gitg
-pkgver=3.26.0
-pkgrel=2
-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')
-
-# Don't convert back to Git sources until compilation with current Vala is fixed (FS#58215)
-
-prepare() {
-  cd $pkgname-$pkgver
-}
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-  mv "$pkgdir"/usr/share/{appdata,metainfo}
-}

Copied: gitg/repos/extra-x86_64/PKGBUILD (from rev 336087, gitg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-10-10 06:45:56 UTC (rev 336088)
@@ -0,0 +1,39 @@
+# Contributor: Eric Bélanger <eric at archlinux.org>
+
+pkgname=gitg
+pkgver=3.30
+pkgrel=1
+epoch=1
+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')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+}
+
+build() {
+  arch-meson $pkgname build
+  ninja -C build
+}
+
+check() {
+  meson test -C build
+}
+
+package() {
+  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