talimat 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. [paket]
  2. tanim = GObjec için statik golang bağlamaları oluşturun
  3. paketci = Cihan_Alkan
  4. url = https://github.com/linuxdeepin/go-gir-generator
  5. [gerek]
  6. derleme =
  7. calisma = golang-gopkg-alecthomas-kingpin.v2
  8. [kaynak]
  9. gz = https://github.com/linuxdeepin/go-gir-generator/archive/$surum
  10. 2 = https://github.com/archlinux/svntogit-community/raw/packages/golang-deepin-gir/trunk/glib-2.63.patch
  11. 3 = https://github.com/archlinux/svntogit-community/raw/packages/golang-deepin-gir/trunk/SettingsBackendLike.patch
  12. [sha256]
  13. # = 1ccfee598aef723e8815c7a2b782624c0d5f6c4d15194dbeb74f5e45b8aff898
  14. [derle]
  15. betik = cd go-gir-generator-$surum
  16. betik = mkdir -p "$SRC"/build/src/pkg.deepin.io
  17. betik = mkdir -p out/src/pkg.deepin.io/gir/{glib-2.0,gobject-2.0,gio-2.0,gudev-1.0}
  18. betik = patch -p1 -i /sources/SettingsBackendLike.patch
  19. betik = patch -p0 -i /sources/glib-2.63.patch
  20. betik = sed -i "s/'Can'tFind'/“Can'tFind”/" lib.in/glib-2.0/keyfile_test.go
  21. betik = cd ../
  22. betik = export GOPATH="$SRC/build:/usr/share/gocode"
  23. betik = export CGO_CPPFLAGS="${CPPFLAGS}"
  24. betik = export CGO_CFLAGS="${CFLAGS}"
  25. betik = export CGO_CXXFLAGS="${CXXFLAGS}"
  26. betik = export CGO_LDFLAGS="${LDFLAGS}"
  27. betik = export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
  28. betik = cd go-gir-generator-$surum
  29. betik = rm -r gogtk-demo
  30. betik = make
  31. betik = mv out/src/pkg.deepin.io/gir "$SRC"/build/src/pkg.deepin.io/
  32. [pakur]
  33. betik = cd go-gir-generator-$surum
  34. betik = mkdir -p "$PKG"/usr/share/gocode/src/pkg.deepin.io
  35. betik = cp -a "$SRC"/build/src/pkg.deepin.io/gir "$PKG"/usr/share/gocode/src/pkg.deepin.io/