talimat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [paket]
  2. tanim = DDE için GO DBus fabrikası
  3. paketci = Cihan_Alkan
  4. grup = deepin
  5. url = https://github.com/linuxdeepin/go-dbus-factory
  6. [gerek]
  7. derleme =
  8. calisma =
  9. [kaynak]
  10. 1 = https://github.com/linuxdeepin/go-dbus-factory/archive/$surum.tar.gz::$isim-$surum.tar.gz
  11. [sha1]
  12. #1 = SKIP
  13. [derle]
  14. betik = cd ../
  15. betik = export GO111MODULE=off
  16. betik = export GOPATH="$SRC/build:/usr/share/gocode"
  17. betik = mkdir -p "$SRC"/build/src/github.com/linuxdeepin
  18. betik = cp -a "$SRC"/go-dbus-factory-$surum "$SRC"/build/src/github.com/linuxdeepin/go-dbus-factory
  19. betik = go get github.com/godbus/dbus github.com/fsnotify/fsnotify
  20. betik = cd ../
  21. betik = export CGO_CPPFLAGS="${CPPFLAGS}"
  22. betik = export CGO_CFLAGS="${CFLAGS}"
  23. betik = export CGO_CXXFLAGS="${CXXFLAGS}"
  24. betik = export CGO_LDFLAGS="${LDFLAGS}"
  25. betik = export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
  26. betik = cd "$SRC"/build/src/github.com/linuxdeepin/go-dbus-factory
  27. betik = make bin
  28. [pakur]
  29. betik = cd "$SRC"/build/src/github.com/linuxdeepin/go-dbus-factory
  30. betik = install -dm755 "$PKG"/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory
  31. betik = cp -a com.* org.* net.* object_manager "$PKG"/usr/share/gocode/src/github.com/linuxdeepin/go-dbus-factory/