# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=deepin-wloutput-daemon
pkgver=2.0.4
pkgrel=1
pkgdesc='Daemon for display settings in the DDE KWayland desktop environment'
arch=('x86_64')
url="https://github.com/linuxdeepin/dde-wloutput-daemon"
license=('GPL3')
depends=('qt5-base' 'dwayland' 'dtkcore' 'glibc' 'gcc-libs')
makedepends=('git' 'cmake' 'ninja' 'extra-cmake-modules')
groups=('deepin')
source=("git+https://github.com/linuxdeepin/dde-wloutput-daemon.git#tag=$pkgver")
sha512sums=('74f2dd41fcfff91edc3437d70fc4363ff8ad22bbe08129c54be689a5368298da8448b45b4c6e7b3aa285ad5f4fd36c60add3b32c858dca82b5e6c8dff774fb94')

build() {
  cd dde-wloutput-daemon
  cmake . -GNinja
  ninja
}

package() {
  cd dde-wloutput-daemon
  DESTDIR="$pkgdir" ninja install
}
