# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=deepin-dock-git
pkgver=5.5.9.r54.g49d37a6c0
pkgrel=1
pkgdesc='Deepin desktop-environment - dock module'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dde-dock"
license=('GPL3')
depends=('qt5-svg' 'deepin-daemon-git' 'deepin-qt5integration-git'
         'deepin-qt-dbus-factory-git' 'deepin-network-utils-git' 'libdbusmenu-qt5')
makedepends=('git' 'cmake' 'ninja' 'qt5-tools' 'gtest' 'gmock' 
             'dtkcommon-git' 'dtkcore-git' 'deepin-qt5integration-git'
             'deepin-qt-dbus-factory' 'deepin-network-utils-git' 'libdbusmenu-qt5'
             'deepin-control-center-git')
conflicts=('deepin-dock')
provides=('deepin-dock')
groups=('deepin-git')
source=('source.tar.gz')
sha512sums=('SKIP')

prepare() {
    cd $deepin_source_name
}

build() {
  cd $deepin_source_name
  cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DDOCK_TRAY_USE_NATIVE_POPUP=YES
  ninja
}

package() {
  cd $deepin_source_name
  DESTDIR="$pkgdir" ninja install
}
