summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f879dac0e9c0b45d9a1fa3131812abbd3af810a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: zccrs <zhangjide@deepin.org>
pkgname=treeland-git
pkgver=0.2.2.r151.gdd0b4f0
pkgrel=1
sourcename=treeland
sourcetars=("$sourcename"_"$pkgver".tar.xz)
sourcedir="$sourcename"
pkgdesc='a new wayland compositer for DDE'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/treeland"
license=('LGPL3')
depends=('qt6-declarative')
makedepends=('git' 'qt6-tools' 'waylib' 'cmake'  'ninja')
conflicts=('treeland')
provides=('treeland')
groups=('deepin-git')
source=("git+${url}")
sha512sums=('SKIP')

pkgver() {
  cd $sourcedir
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $sourcedir
  cmake -B build -GNinja \
      -DCMAKE_INSTALL_LIBEXECDIR=libexec \
      -DCMAKE_INSTALL_LIBDIR=lib \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release

  cmake --build build
}

package() {
  cd $sourcedir/build
  DESTDIR="$pkgdir" ninja install
}