Date: Saturday, March 10, 2018 @ 00:37:54
  Author: heftig
Revision: 318380

archrelease: copy trunk to extra-x86_64

Added:
  libgit2-glib/repos/extra-x86_64/PKGBUILD
    (from rev 318379, libgit2-glib/trunk/PKGBUILD)
Deleted:
  libgit2-glib/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   84 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 44 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2018-03-10 00:35:33 UTC (rev 318379)
+++ PKGBUILD    2018-03-10 00:37:54 UTC (rev 318380)
@@ -1,40 +0,0 @@
-# $Id$
-# Maintainer: Lukas Fleischer <[email protected]>
-# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
-
-pkgname=libgit2-glib
-pkgver=0.26.2
-pkgrel=1
-pkgdesc="GLib wrapper for libgit2"
-url="http://wiki.gnome.org/Projects/Libgit2-glib";
-license=(LGPL2.1)
-arch=(x86_64)
-depends=(glib2 libgit2)
-makedepends=(gobject-introspection python vala gtk-doc)
-source=("https://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz";)
-sha256sums=('2ad6f20db2e38bbfdb6cb452704fe8a911036b86de82dc75bb0f3b20db40ce9c')
-
-prepare() {
-  cd "$pkgname-$pkgver"
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var 
--enable-gtk-doc
-
-  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
-  make
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  make check
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-}

Copied: libgit2-glib/repos/extra-x86_64/PKGBUILD (from rev 318379, 
libgit2-glib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2018-03-10 00:37:54 UTC (rev 318380)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Lukas Fleischer <[email protected]>
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+
+pkgname=libgit2-glib
+pkgver=0.26.4
+pkgrel=1
+pkgdesc="GLib wrapper for libgit2"
+url="http://wiki.gnome.org/Projects/Libgit2-glib";
+license=(LGPL2.1)
+arch=(x86_64)
+depends=(glib2 libgit2)
+makedepends=(gobject-introspection python-gobject python2 vala gtk-doc git 
meson)
+_commit=fed5187a24bbee3aa72049df3f55af4a4166c0bb  # tags/v0.26.4^0
+source=("git+https://git.gnome.org/browse/libgit2-glib#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+}
+
+build() {
+  arch-meson $pkgname build -D gtk_doc=true
+  ninja -C build
+}
+
+check() {
+  cd build
+  meson test
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+  cp -a "$pkgdir"/usr/lib/python{3.6,2.7}
+  python3 -m compileall "$pkgdir/usr/lib/python3.6"
+  python3 -O -m compileall "$pkgdir/usr/lib/python3.6"
+  python2 -m compileall "$pkgdir/usr/lib/python2.7"
+  python2 -O -m compileall "$pkgdir/usr/lib/python2.7"
+}

Reply via email to