summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ac959a52e35ebd31807490e4e88df3da8e1dc255 (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: hekel <hekel(at)vivaldi(dot)net>

pkgname=kwin-effects-burn-my-windows-git
_pkgname=Burn-My-Windows-git
pkgver=r640.bb44d4b
pkgrel=1
pkgdesc="Disintegrate your windows with style."
arch=('any')
url="https://github.com/Schneegans/Burn-My-Windows"
license=('GPL3')
depends=('kwin')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$_pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd ${srcdir}/${_pkgname}
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build() {
  cd "${srcdir}/${_pkgname}/kwin"
  sh build.sh
}

package() {
  mkdir -p "${pkgdir}/usr/share/kwin/effects/"
  cp -r "${srcdir}/${_pkgname}/kwin/_build/." "${pkgdir}/usr/share/kwin/effects/"
}