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

pkgname=dde-kwin-git
pkgver=5.5.11.r27.gb5c00527b
pkgrel=1
pkgdesc='KWin configures on DDE'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dde-kwin"
license=('GPL3')
depends=('deepin-qt5integration' 'deepin-wallpapers' 'deepin-kwin')
makedepends=('extra-cmake-modules' 'expac' 'ninja' 'qt5-tools')
provides=('dde-kwin-reborn' 'dde-kwin')
conflicts=('dde-kwin-reborn' 'dde-kwin')
groups=('deepin-git')
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
}