# Tanım: Web Uygulaması için Yüksek Hızlı C ++ MVC Çerçevesi
# URL: https://github.com/treefrogframework/treefrog-framework
# Paketçi: Cihan_Alkan
# Gerekler: mongo-c-driver qt5
# Grup: oyun


isim=treefrog-framework
surum=1.22.0
devir=1
kaynak=(https://github.com/treefrogframework/treefrog-framework/archive/v$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
  cd $isim-$surum
  rm -r 3rdparty

  sed -i 's|LIBS += ../3rdparty/mongo-c-driver/libmongoc.a|LIBS += -lmongoc-1.0\nINCLUDEPATH += /usr/include/libbson-1.0 /usr/include/libmongoc-1.0|' src/corelib.pro
  sed -i 's|exit $RET||' configure
  ./configure --prefix=/usr
  
  cd src
  make

  make INSTALL_ROOT="$PKG" install

  install -Dm644 ../copyright "$PKG"/usr/share/licenses/$isim/copyright
}