summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 560227f74d0a4ca6ba0269cf363abd52cca34be1 (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
 
# Maintainer: Jan Neumann <neum dot ja at gmail dot com>


pkgname=better-plasma5-video-wallpaper-git
_gitname=PlasmaVideoWallpaper
pkgver=r4.40ba42f
pkgrel=1
pkgdesc='Plasma 5 plugin for video-wallpaper without gap between loop'
arch=('any')
url='https://github.com/WuSiYu/PlasmaVideoWallpaper'
license=('GPL3')
depends=('plasma-desktop')
makedepends=('git' 'cmake' 'extra-cmake-modules')
source=("git+${url}.git")
sha256sums=('SKIP')

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

}
            
build() {
   cd ${srcdir}/${_gitname}
   mkdir build && cd build
   cmake .. 
   
   make
   
}

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

}