1234567891011121314151617181920212223242526 |
- # Tanım: Torch7 sanal sinir ağları
- # URL: https://github.com/torch/nn
- # Paketçi: milisarge
- # Gerekler: cmake git torch7-git
- # Grup: sistem
- isim=torch7-nn
- surum=git
- devir=1
- kaynak=()
- derle() {
- git_indir https://github.com/torch/nn $isim
- cd "${isim}"
- cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
- make
- make DESTDIR="${PKG}" install
- # Move Lua C module
- mkdir -p "${PKG}/usr/lib/lua/5.1"
- mv "${PKG}/usr/lib/libTHNN.so" "${PKG}/usr/lib/lua/5.1/"
- # Move pure Lua modules
- mkdir -p "${PKG}/usr/share/lua/5.1"
- mv "${PKG}/usr/lua/nn" "${PKG}/usr/share/lua/5.1/"
- rm -rf "${PKG}/usr/lua"
- }
|