# Tanım: Chm dosya gösterici
# URL: http://kchmviewer.sourceforge.net/
# Paketçi: milisarge
# Gerekler: chmlib libzip qt5-webkit 
# Grup: ofis

isim=kchmviewer
surum=7.7
devir=1
kaynak=(http://downloads.sourceforge.net/kchmviewer/kchmviewer-7.7.tar.gz
		kchmviewer-7.7-underlinking.patch
		fix-qt5-build.patch)

derle() {
  cd $isim-$surum
  patch -Np1 -i "${SRC}"/$isim-$surum-underlinking.patch
  patch -Np1 -i "${SRC}"/fix-qt5-build.patch
  qmake-qt5 PREFIX=/usr
  make
  make DESTDIR="${PKG}" install
  install -Dm755 bin/$isim "${PKG}"/usr/bin/$isim
  install -Dm644 packages/$isim.png "${PKG}"/usr/share/pixmaps/$isim.png
  install -Dm644 packages/$isim.desktop "${PKG}"/usr/share/applications/$isim.desktop
}
