summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e20ca7035257d5c8fd9c22ac6b04f19ca4863d75 (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: Jan Buchar <Teyras@gmail.com>

pkgname=kwin-scripts-krohnkite-git
_gitname=krohnkite
pkgver=r464.2a47753
pkgrel=2
pkgdesc="A dynamic tiling extension for KWin"
arch=('any')
url="https://github.com/esjeon/krohnkite.git"
license=('MIT')
depends=('kwin')
makedepends=('make' 'plasma-framework' 'typescript' 'p7zip' 'git')
provides=("$_gitname")
conflicts=("$_gitname")
source=("$_gitname::git+$url")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  mkdir -p "${srcdir}/pkg"
  cd "${srcdir}/${_gitname}"
  HOME=${srcdir}/pkg XDG_DATA_HOME= make -e install
}

package() {
  cd "${srcdir}/${_gitname}"
  install -d "${pkgdir}/usr/share/kwin/scripts/${_gitname}"
  cp -ra "${srcdir}/pkg/.local/share/kwin/scripts/${_gitname}/." "${pkgdir}/usr/share/kwin/scripts/${_gitname}/"
  install -Dm644 "${srcdir}/pkg/.local/share/kwin/scripts/${_gitname}/metadata.desktop" "${pkgdir}/usr/share/kservices5/${_gitname}.desktop"
}