[arch-commits] Commit in deepin-file-manager-backend/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Oct 28 06:00:45 UTC 2016


    Date: Friday, October 28, 2016 @ 06:00:44
  Author: felixonmars
Revision: 193866

upgpkg: deepin-file-manager-backend 0.1.16-4

Modified:
  deepin-file-manager-backend/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++-----------------------------------
 1 file changed, 8 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-28 05:56:00 UTC (rev 193865)
+++ PKGBUILD	2016-10-28 06:00:44 UTC (rev 193866)
@@ -5,54 +5,27 @@
 
 pkgname=deepin-file-manager-backend
 pkgver=0.1.16
-_golibver=0.5.1
-_deepinapiver=3.0.14
-_dbusfactoryver=3.0.6
-_girgeneratorver=0.9.6
-pkgrel=3
+pkgrel=4
 pkgdesc='deepin file manager backend'
 arch=('i686' 'x86_64')
 url="https://github.com/linuxdeepin/deepin-file-manager-backend"
 license=('GPL3')
 depends=('deepin-metacity' 'libcanberra' 'poppler-glib') # 'gcc-libs>=5.3.0-3')
-makedepends=('git' 'deepin-dbus-generator' 'deepin-gir-generator' 'go') # 'gcc-go')
-source=("git+https://cr.deepin.io/deepin-file-manager-backend.git#tag=$pkgver"
-        "git+https://cr.deepin.io/go-lib.git#tag=$_golibver"
-        "git+https://cr.deepin.io/dde/dde-api.git#tag=$_deepinapiver"
-        "git+https://cr.deepin.io/dbus-factory.git#tag=$_dbusfactoryver"
-        "git+https://cr.deepin.io/go-gir-generator.git#tag=$_girgeneratorver")
-sha256sums=('SKIP'
-            'SKIP'
-            'SKIP'
-            'SKIP'
-            'SKIP')
+makedepends=('git' 'deepin-dbus-factory' 'deepin-gir-generator' 'deepin-go-lib' 'deepin-api' 'go') # 'gcc-go')
+source=("git+https://cr.deepin.io/deepin-file-manager-backend.git#tag=$pkgver")
+sha256sums=('SKIP')
 
 prepare() {
-  sed -i "s|\"\${GOLDFLAGS}\"|\"\${GOLDFLAGS} $CFLAGS $LDFLAGS\"|" deepin-file-manager-backend/Makefile
-  sed -i 's| generator$||' go-gir-generator/makefile
-
-  export GOPATH="$srcdir/build"
-  mkdir -p build/src/pkg.deepin.io/{lib,dde/api}
-  cp -a go-lib/* build/src/pkg.deepin.io/lib
-  cp -a dde-api/* build/src/pkg.deepin.io/dde/api/
-
+  export GOPATH="$srcdir/build:/usr/share/gocode"
   go get github.com/howeyc/fsnotify github.com/mattn/go-sqlite3 gopkg.in/alecthomas/kingpin.v2
 }
 
 build() {
-  cd "$srcdir/dbus-factory"
-  make install-golang
-
-  cd "$srcdir/go-gir-generator"
-  make GENERATOR=gir-generator build
-  make copyfile
-  cp -r out/src/gir "$GOPATH/src"/
-
-  cd "$srcdir/$pkgname"
+  cd deepin-file-manager-backend
   make # USE_GCCGO=1
 }
 
 package() {
-  cd "${pkgname}"
-  make DESTDIR="${pkgdir}" do-install
+  cd deepin-file-manager-backend
+  make DESTDIR="$pkgdir" do-install
 }



More information about the arch-commits mailing list