# Maintainer: justforlxz pkgname=dwayland-git pkgver=5.25.0.r4.g76b3f08 pkgrel=1 pkgdesc='Qt-style Client and Server library wrapper for the Wayland libraries' arch=(x86_64) license=(LGPL) depends=(qt5-wayland) makedepends=(extra-cmake-modules doxygen qt5-tools qt5-doc wayland-protocols deepin-wayland-protocols ninja) provides=('dwayland-reborn' 'dwayland') conflicts=('dwayland-reborn' 'dwayland') groups=('deepin-git') source=("$pkgname::git+https://github.com/linuxdeepin/dwayland.git") sha256sums=('SKIP') pkgver() { cd $pkgname git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cmake -G Ninja -B build -S $pkgname \ -DCMAKE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF \ -DBUILD_QCH=ON cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }