talimat 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. [paket]
  2. tanim = Dde-daemon için Golang bağlamaları
  3. paketci = Cihan_Alkan
  4. grup = deepin
  5. url = https://github.com/linuxdeepin/dde-api
  6. [kaynak]
  7. 1 = https://github.com/linuxdeepin/dde-api/archive/$surum.tar.gz::$isim-$surum.tar.gz
  8. 2 = https://github.com/archlinux/svntogit-community/raw/packages/deepin-api/trunk/deepin-api.sysusers
  9. [sha1]
  10. #1 = SKIP
  11. [derle]
  12. betik = export GOPATH="$SRC/build:/usr/share/gocode"
  13. betik = mkdir -p build/src/pkg.deepin.io/dde/api
  14. betik = cp -a dde-api-$surum/* build/src/pkg.deepin.io/dde/api/
  15. betik = go get github.com/cryptix/wav github.com/godbus/dbus github.com/fsnotify/fsnotify
  16. betik = go get github.com/disintegration/imaging github.com/fogleman/gg github.com/mattn/go-sqlite3 github.com/gosexy/gettext github.com/rickb777/date
  17. betik = export CGO_CPPFLAGS="${CPPFLAGS}"
  18. betik = export CGO_CFLAGS="${CFLAGS}"
  19. betik = export CGO_CXXFLAGS="${CXXFLAGS}"
  20. betik = export CGO_LDFLAGS="${LDFLAGS}"
  21. betik = export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
  22. betik = cd dde-api-$surum
  23. betik = make
  24. [pakur]
  25. betik = cd dde-api-$surum
  26. betik = make DESTDIR="$PKG" install
  27. betik = install -Dm644 /sources/deepin-api.sysusers "$PKG"/usr/lib/sysusers.d/deepin-api.conf