# Tanım: Deepin Polkit Agent
# URL: https://github.com/linuxdeepin/dde-polkit-agent
# Paketçi: Cihan_Alkan 
# Gerekler: qt5 python deepin-qt-dbus-factory polkit-qt5
# Grup: deepin

isim=deepin-polkit-agent
surum=0.2.1
devir=1
kaynak=(https://github.com/linuxdeepin/dde-polkit-agent/archive/$surum.tar.gz::$isim-$surum.tar.gz)

derle() {
  [ ! -f /usr/bin/lrelease ] && ln -s /usr/bin/lrelease-qt5 /usr/bin/lrelease
  cd dde-polkit-agent-$surum
  sed -i 's|dcombobox.h|QComboBox|' AuthDialog.h
  qmake-qt5 PREFIX=/usr
  make

  make INSTALL_ROOT="$PKG" install
}