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

Felix Yan felixonmars at archlinux.org
Fri Oct 28 05:52:48 UTC 2016


    Date: Friday, October 28, 2016 @ 05:52:47
  Author: felixonmars
Revision: 193862

upgpkg: deepin-api 3.0.14-4

Modified:
  deepin-api/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++----------------------------
 1 file changed, 7 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-28 05:49:30 UTC (rev 193861)
+++ PKGBUILD	2016-10-28 05:52:47 UTC (rev 193862)
@@ -5,35 +5,22 @@
 
 pkgname=deepin-api
 pkgver=3.0.14
-_golibver=0.5.1
-_dbusfactoryver=3.0.6
-_girgeneratorver=0.9.6
-pkgrel=3
+pkgrel=4
 pkgdesc='Go-lang bingdings for dde-daemon'
 arch=('i686' 'x86_64')
 url="https://gitcafe.com/Deepin/dde-api"
 license=('GPL3')
 depends=('glib2' 'gdk-pixbuf2' 'gtk3' 'libcanberra-pulse' 'libxi' 'libxfixes' 'rfkill' 'poppler-glib' 'deepin-metacity' 'xcur2png' 'blur-effect') # 'gcc-libs>=5.3.0-3')
-makedepends=('git' 'deepin-dbus-generator' 'deepin-gir-generator' 'bzr' 'go') # 'gcc-go')
+makedepends=('git' 'deepin-dbus-factory' 'deepin-gir-generator' 'deepin-go-lib' 'bzr' 'go') # 'gcc-go')
 conflicts=('dde-api')
 replaces=('dde-api')
 groups=('deepin')
-source=("git+https://cr.deepin.io/dde/dde-api.git#tag=$pkgver"
-        "git+https://cr.deepin.io/go-lib.git#tag=$_golibver"
-        "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')
+source=("git+https://cr.deepin.io/dde/dde-api.git#tag=$pkgver")
+sha256sums=('SKIP')
 
 prepare() {
-  sed -i "s|\"\${LDFLAGS}\"|\"\${LDFLAGS} $CFLAGS $LDFLAGS\"|" dde-api/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
+  export GOPATH="$srcdir/build:/usr/share/gocode"
+  mkdir -p build/src/pkg.deepin.io/dde/api
   cp -a dde-api/* build/src/pkg.deepin.io/dde/api/
 
   cd "$srcdir/dde-api"
@@ -42,14 +29,6 @@
 }
 
 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/dde-api"
   make # USE_GCCGO=1
 }
@@ -56,5 +35,5 @@
 
 package() {
   cd dde-api
-  make DESTDIR="${pkgdir}" SYSTEMD_LIB_DIR=/usr/lib install-binary
+  make DESTDIR="$pkgdir" SYSTEMD_LIB_DIR=/usr/lib install
 }



More information about the arch-commits mailing list