summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4c31e3bba4d5cc77502accbeb741652099d38870 (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: JohnyPea <johnypean@gmail.com>

pkgname=kwin-effect-shaders-git
_pkgname=kwin-effect-shaders
pkgver=159.ref9f7e8
pkgrel=1
pkgdesc="KDE Plasma / KWin desktop effect aimed at adding post processing effects to video games."
arch=('i686' 'x86_64')
url="https://github.com/kevinlekiller/kwin-effect-shaders"
license=('GPL')
depends=('kwin') #kf5
makedepends=('extra-cmake-modules')
provides=(${pkgname%-*})
conflicts=(${pkgname%-*})
source=('git+https://github.com/kevinlekiller/kwin-effect-shaders')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  local srcversion="$(grep "ID_GUAYADEQUE_VERSION" src/Version.h.in | cut -d '"' -f 2)"
  printf "%s.r%s" $srcversion "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${srcdir}/${_pkgname}"
  mkdir build
  cd build
  cmake ..
}

build() {
  cd "${srcdir}/${_pkgname}/build"
  make
}

package() {
  cd "${srcdir}/${_pkgname}/build"
  make DESTDIR="${pkgdir}" install
}