# Tanım: DDE için GO DBus fabrikası
# URL: https://github.com/linuxdeepin/go-dbus-factory
# Paketçi: Cihan_Alkan
# Gerekler: deepin-go-lib go110 git
# Grup: masaüstü

isim=deepin-go-dbus-factory
surum=0.2.0
devir=1
kaynak=(https://github.com/linuxdeepin/go-dbus-factory/archive/$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
  export GOPATH="$SRC/build:/usr/share/gocode"

  mkdir -p "$SRC"/build/src/github.com/linuxdeepin
  ln -sf "$SRC"/go-dbus-factory-$surum "$SRC"/build/src/github.com/linuxdeepin/go-dbus-factory

  go get golang.org/x/net/context 

  cd go-dbus-factory-$surum
  make bin
  ./gen.sh

  install -dm755 "$PKG"/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory
  cp -a com.* org.* net.* object_manager "$PKG"/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/
}