[arch-commits] Commit in deepin-gir-generator/trunk (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 28 04:49:24 UTC 2016


    Date: Friday, October 28, 2016 @ 04:49:23
  Author: felixonmars
Revision: 193842

upgpkg: deepin-gir-generator 0.9.6-2

Added:
  deepin-gir-generator/trunk/SettingsBackendLike.patch
Modified:
  deepin-gir-generator/trunk/PKGBUILD

---------------------------+
 PKGBUILD                  |   24 ++++++++++++++++--------
 SettingsBackendLike.patch |   42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-28 03:49:00 UTC (rev 193841)
+++ PKGBUILD	2016-10-28 04:49:23 UTC (rev 193842)
@@ -5,25 +5,33 @@
 
 pkgname=deepin-gir-generator
 pkgver=0.9.6
-pkgrel=1
+pkgrel=2
 pkgdesc='Generate static golang bindings for GObject'
 arch=('i686' 'x86_64')
 url="https://gitcafe.com/Deepin/go-gir-generator"
 license=('GPL3')
-depends=('gobject-introspection' 'gcc-libs>=5.3.0-3')
-makedepends=('git' 'gcc-go')
-source=("git+https://cr.deepin.io/go-gir-generator.git#tag=$pkgver")
-md5sums=('SKIP')
+depends=('gobject-introspection' 'libgudev')
+makedepends=('git' 'go')
+source=("git+https://cr.deepin.io/go-gir-generator.git#tag=$pkgver"
+        SettingsBackendLike.patch)
+md5sums=('SKIP'
+         'bf367edebfc344b050d35fd0fb56212d')
 
 prepare() {
   export GOPATH="$srcdir/go-gir-generator/vender:$srcdir/go-gir-generator"
+
+  cd go-gir-generator
+  # Our gobject-introspection is too new
+  # https://cr.deepin.io/#/c/16880/
+  patch -p1 -i ../SettingsBackendLike.patch
 }
 
 build() {
-  cd go-gir-generator/src/gir-generator
-  go build -gccgoflags "$(pkg-config --libs gobject-introspection-1.0) $CFLAGS $LDFLAGS" -o gir-generator
+  cd go-gir-generator
+  make
 }
 
 package() {
-  install -Dm 755 go-gir-generator/src/gir-generator/gir-generator "${pkgdir}"/usr/bin/gir-generator
+  cd go-gir-generator
+  make DESTDIR="$pkgdir" install
 }

Added: SettingsBackendLike.patch
===================================================================
--- SettingsBackendLike.patch	                        (rev 0)
+++ SettingsBackendLike.patch	2016-10-28 04:49:23 UTC (rev 193842)
@@ -0,0 +1,42 @@
+From 55ad8df560b2a8aec3462e61edff781f11cf86a9 Mon Sep 17 00:00:00 2001
+From: jouyouyun <jouyouwen717 at gmail.com>
+Date: Mon, 24 Oct 2016 19:43:32 +0800
+Subject: [PATCH] Fix 'SettingsBackendLike' undefined
+
+Change-Id: I9b817b3a6ec26ce8023e26a6b2c7abc67074d53f
+---
+
+diff --git a/lib.in/gio-2.0/config.json b/lib.in/gio-2.0/config.json
+index aaf75ed..7733140 100644
+--- a/lib.in/gio-2.0/config.json
++++ b/lib.in/gio-2.0/config.json
+@@ -35,6 +35,7 @@
+ 			"AppLaunchContext",
+ 			"Emblem",
+ 			"Settings",
++			"SettingsBackend",
+ 			"FileMonitor",
+ 			"FileInfo",
+ 			"InputStream",
+@@ -52,7 +53,6 @@
+ 			"FileAttributeInfoList",
+ 			"FileAttributeMatcher",
+ 			"ActionEntry",
+-			"SettingsBackend",
+ 			"MountIface"
+ 			//"SettingsSchema"
+ 		],
+diff --git a/lib.in/glib-2.0/config.json b/lib.in/glib-2.0/config.json
+index 88a8314..4290004 100644
+--- a/lib.in/glib-2.0/config.json
++++ b/lib.in/glib-2.0/config.json
+@@ -11,7 +11,8 @@
+ 	    "KeyFile",
+ 	    "Variant",
+ 	    "VariantType",
+-	    "PollFD"
++	    "PollFD",
++	    "Tree"
+ 	],
+ 	"functions": [
+ 	    "get_user_cache_dir",



More information about the arch-commits mailing list