summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38bbb31647c262f3a94340594c1af4a616ccf140 (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
# Maintainer: Jianqiu Zhang <void001@archlinuxcn.org>


pkgname=kcm-colorful-git
pkgrel=1
pkgver=0.9.6.r0.g22ffde1
pkgdesc='Make your KDE plasma colorful'
arch=('x86_64')
url="https://github.com/IsoaSFlus/kcm-colorful"
license=('GPL2')
depends=('systemsettings' 'kcolorchooser')
makedepends=('cmake' 'git' 'extra-cmake-modules' 'qt5-base' 'frameworkintegration' 'kcmutils')

source=(
    "kcm-colorful::git+https://github.com/IsoaSFlus/kcm-colorful"
)

sha256sums=('SKIP')

pkgver() {
    cd "$srcdir"/kcm-colorful
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "$srcdir"/kcm-colorful
    git submodule init
    git submodule update
}

build() {
    cd $srcdir/kcm-colorful
    mkdir -p build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX="/usr" \
          -DCMAKE_INSTALL_LIBDIR="lib" \
          -DBUILD_TESTING=OFF \
        ..
    make
}

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