talimat 613 B

1234567891011121314151617181920212223242526
  1. # Tanım: Torch7 sanal sinir ağları
  2. # URL: https://github.com/torch/nn
  3. # Paketçi: milisarge
  4. # Gerekler: cmake git torch7-git
  5. # Grup: sistem
  6. isim=torch7-nn
  7. surum=git
  8. devir=1
  9. kaynak=()
  10. derle() {
  11. git_indir https://github.com/torch/nn $isim
  12. cd "${isim}"
  13. cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  14. make
  15. make DESTDIR="${PKG}" install
  16. # Move Lua C module
  17. mkdir -p "${PKG}/usr/lib/lua/5.1"
  18. mv "${PKG}/usr/lib/libTHNN.so" "${PKG}/usr/lib/lua/5.1/"
  19. # Move pure Lua modules
  20. mkdir -p "${PKG}/usr/share/lua/5.1"
  21. mv "${PKG}/usr/lua/nn" "${PKG}/usr/share/lua/5.1/"
  22. rm -rf "${PKG}/usr/lua"
  23. }