summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b3817ed65cfbcdc5e9de48f07e633fdf189f5f22 (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
# Maintainer: justforlxz <justforlxz@gmail.com>

pkgname=dde-kwin-git
pkgver=5.5.11.r25.gff663502d
pkgrel=1
pkgdesc='KWin configures on DDE'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dde-kwin"
license=('GPL3')
depends=('deepin-qt5integration-git' 'deepin-wallpapers-git' 'kwin')
makedepends=('extra-cmake-modules' 'expac' 'ninja' 'qt5-tools')
provides=('dde-kwin-reborn')
conflicts=('dde-kwin-reborn')
source=("$pkgname::git+https://github.com/linuxdeepin/dde-kwin/")
sha512sums=('SKIP')

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

build() {
  cd $pkgname
  cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DKWIN_VERSION=$(expac %v kwin | cut -d - -f 1)
  ninja
}

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

  chmod +x "$pkgdir"/usr/bin/kwin_no_scale
}