summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3776aacbf546c054276f0be719a11940f9d1984e (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
40
41
42
43
44
45
46
 
# Maintainer: tristanrw 

pkgname=nx-plasma-look-and-feel-compat-git
_gitname=nx-plasma-look-and-feel
pkgver=r204.7d541de
pkgrel=1
pkgdesc="NX Look and Feel package, patched for use with extra/kvantum"
arch=('any')
url="https://github.com/nx-desktop"
license=('GPL')
replaces=('nomad-plasma-look-and-feel-git')
conflicts=('nomad-plasma-look-and-feel-git')
depends=('plasma-desktop' 'luv-icon-theme-git' 'kvantum')
optdepends=('nx-gtk-themes-git')
makedepends=('git' 'cmake' 'extra-cmake-modules')
source=("git+${url}/nx-plasma-look-and-feel.git"
        "git+${url}/nx-kvantum-theme")
sha256sums=('SKIP'
            '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 .. \
     -DCMAKE_INSTALL_PREFIX=/usr
 
}

package() {
   
   make -C ${srcdir}/${_gitname}/build DESTDIR=${pkgdir} install        
   mkdir -p ${pkgdir}/usr/share/Kvantum/{KvNitrux,KvNitruxDark}
   cp -r ${srcdir}/nx-kvantum-theme/themes/{KvNitrux,KvNitruxDark} ${pkgdir}/usr/share/Kvantum/
 
}