# Tanım: Deepin grafiksel kullanıcı arabirimi kütüphanesi
# URL: https://github.com/linuxdeepin/dtkwidget
# Paketçi: Cihan Alkan
# Gerekler: deepin-qt-dbus-factory dtkcore startup-notification qt5 librsvg

isim=dtkwidget
surum=2.0.8
devir=1
kaynak=(https://github.com/linuxdeepin/dtkwidget/archive/$surum.tar.gz::dtkwidget-$surum.tar.gz)

derle() {
  [ ! -f /usr/bin/lrelease ] && ln -s /usr/bin/lrelease-qt5 /usr/bin/lrelease
  sed -i 's/x11/x11 xi/' dtkwidget-$surum/src/widgets/private/keyboardmonitor/keyboardmonitor.pri
  cd dtkwidget-$surum
  qmake-qt5 PREFIX=/usr
  make
  make INSTALL_ROOT="$PKG" install
  [ -f /usr/bin/lrelease ] && rm /usr/bin/lrelease
}
